居然变量名不能以new开头的。error: Semantic Issue: Property's synthesized getter follows Cocoa naming co

居然变量名不能以new开头的。
@property(nonatomic, strong) NSMutableArray *newDrinkArray;

newDrinkArray属性名是非法的。哈哈


error: Semantic Issue: Property's synthesized getter follows Cocoa naming co

修改为

@property(nonatomic, strong) NSMutableArray *AddDrinkArray;//OK


但在方法中又可以定义?


-(IBAction) save:(id)sender
{
    NSMutableDictionary *newDrink = [[NSMutableDictionary alloc] init];

}

你可能感兴趣的:(cocoa,getter,Semantic)