Why does this crash: stringByAppendingFormat

Posted by Emil on Stack Overflow See other posts from Stack Overflow or by Emil
Published on 2010-06-01T16:26:21Z Indexed on 2010/06/01 18:13 UTC
Read the original article Hit count: 142

Filed under:
|
|

Hey.

My code crashes at this function (at the stringByAppendingFormat: with error objc_msgSend() selector name: stringByAppendingFormat).

This is that line:

    // imagesPath = ...iPhone Simulator/4.0/Applications/NUMBERS/Documents/images
UIImage *image = [[UIImage alloc] initWithContentsOfFile:[imagesPath stringByAppendingFormat:@"/%d.png", [[self.postsArrayID objectAtIndex:row] intValue]]];

Could it have something to do with the retaining of objects?

Thanks :)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about string