Why do I get an "out of scope" error whenever I try to access the variable "url" in this loop?
for(NSString *url in self.winnerImageURLs) {
[mediaItemString appendFormat:@"{\"type\":\"image\",\"src\":\"%@\",\"href\":\"%@\"},", url, url];
}
The class of the element itself in "self.winnerImageURLs" NSMutableArray is returned as NSCFString, so I'm not sure what it is here.
Any ideas on what I'm doing wrong ???
thank
source
share