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
并且两个数组的转出为空