0
由於昨天晚上Xcode剛剛停止工作正常,它不會自動更正,提供代碼提示,並且在構建之前不會識別錯誤。現在我甚至無法讓我的代碼正常工作100%。爲什麼我不能將對象添加到我的NSMutableArray
我的對象不會添加到我的數組中。
NSMutableArray *notesTitle;
NSMutableArray *notesBody;
.M
- (void)viewDidLoad
{
[super viewDidLoad];
notesTitle = [[NSMutableArray alloc]init];
notesBody = [[NSMutableArray alloc]init];
}
...
[notesTitle addObject:noteTitle.text];
[notesBody addObject:noteText.text];
///noteTitle.text and noteText.text do contain Text
並且兩個數組的轉出爲空