"out of scope" error when iterating an NSMutableArray

Posted by wgpubs on Stack Overflow See other posts from Stack Overflow or by wgpubs
Published on 2010-05-18T01:42:00Z Indexed on 2010/05/18 1:51 UTC
Read the original article Hit count: 235

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

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode