5th,Jan,2016
1.一开始使用的是以下方式读取plist文件中数据,但返回为nil:
[NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"messages" ofType:@"plist"]];
接着以为是因为类型错误,应为NSMutableArray,故尝试,依旧返回nil:
[NSMutableArray arrayWithContentsOfFile: ...]
尝试以下初始化方式,接不可:
[NSMutableArray alloc] initWithConte