Objective C coding error
<p>I am getting an error  &amp; Use of undecleared idenifier 'photos'
                         Use of undecleared idenifier 'pic'  </p>

<p>here is my code</p>

<pre><code>#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];
}
</code></pre>
