Reputation: 3527
Why does the following lines of code not adding anything to the array
and the array
just produces null
.
NSString *LIstringURL = [[NSString alloc] initWithFormat:@"http://farm%@.staticflickr.com/%@/%@_%@.jpg",flickrfarmID,flickrServer, flickrID,flickrSecret];
NSString *SIstringURL = [[NSString alloc] initWithFormat:@"http://farm%@.staticflickr.com/%@/%@_%@_t.jpg",flickrfarmID,flickrServer, flickrID,flickrSecret];
// NSURL *url = [[NSURL alloc] initWithString:stringURL];
NSArray *bothImagesArray = [NSArray arrayWithObjects:LIstringURL,SIstringURL, nil];
[self.urlArray addObject:bothImagesArray];
Upvotes: 1
Views: 73
Reputation: 8444
check the mutable array is initiated or not
self.urlArray = [[NSMutableArray alloc]init];
Upvotes: 1