iphoneobjective-cxcodeiphone-sdk-3.0class-cluster

"out of scope" error when iterating an NSMutableArray


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


Solution

  • If you're talking about accessing the url variable in the debugger, it happens quite a lot. It's not a problem in itself.