我是新來obj-c,我試圖編寫一個簡單的「輸入到plist」應用程序。我有兩個輸入:UITextField「預期標識符」問題
@property (strong, nonatomic) IBOutlet UITextField *costo;
@property (strong, nonatomic) IBOutlet UITextField *descrizione;
,我將它們合成在.m文件
@synthesize costo;
@synthesize descrizione;
然後我有一個函數SAVEDATA()有:
NSNumber *newValue = [NSNumber numberWithInt:[costo.text intValue]];
[mutableDictCopy setObject:newValue forKey:[descrizione.text]];
此功能工作正常costo.text,但後來我收到一個「預期標識符」錯誤descrizione.text。如果我用@「foo」切換它,一切都很順利,它會更新我的plist。我在哪裏得到錯誤?
**哎呀!** d TY隊友 – 2012-07-23 12:49:22