"out of scope" error when iterating an NSMutableArray
- by wgpubs
Why am I getting an "out of scope" error whenever I try to access the "url" variable in this loop?
for(NSString *url in self.winnerImageURLs) {
[mediaItemString appendFormat:@"{\"type\":\"image\",\"src\":\"%@\",\"href\":\"%@\"},", url, url];
}
The class of very item in the "self.winnerImageURLs" NSMutableArray comes back as NSCFString so I'm not sure what the dealio is here.
Any ideas on what I'm doing wrong???
Thanks