我收到一个错误并使用未清除的标识符“照片”使用未清除的标识符“图片”
这是我的代码
#pragma mark - View lifecycle
- (void)viewDidLoad
{
[super viewDidLoad];
photos = [[NSMutableArray alloc] init];
Use of undecleared idenifier 'photos'
Photo *pic = [[Photo alloc] init];
[pic setName:@"Aston Martin"]; Use of undecleared idenifier 'pic'
[pic setFilename:@"Aston Martin DB6.jpg"]; Use of undecleared idenifier 'pic'
[pic setNotes:@"Red is my favorite color."]; Use of undecleared idenifier 'pic'
[photos addObject:pic];
}