I define a enum named SexType, and want use as the following:
public class People {
//@Property("copy, nonatomic") protected String location;
// @Property("copy, nonatomic") protected SexType sex;
public String name;
public SexType sex;
public People(String name){
this.name = name;
}
public String say(String text){
return this.name + " say:" + text;
}
public void setName(String name){
this.name = name;
}
}
It run ok in java side, but it failed when translate to objC and error is "SexType cannot be resolved to a type". Who know the reason?
Thanks