Mon code se bloque à cette fonction (à la stringByAppendingFormat: avec l'erreur objc_msgSend() selector name: stringByAppendingFormat
).Pourquoi ce crash: stringByAppendingFormat
est que la ligne:
// imagesPath = ...iPhone Simulator/4.0/Applications/NUMBERS/Documents/images
UIImage *image = [[UIImage alloc] initWithContentsOfFile:[imagesPath stringByAppendingFormat:@"/%d.png", [[self.postsArrayID objectAtIndex:row] intValue]]];
Pourrait-il avoir quelque chose à voir avec le maintien des objets?
Merci :)
Donner plus de code Quel est le type de 'imagesPath'? NSArray * 'ou une autre collection au pluriel de nom suggère?) Comment initialiser cette variable? – SergGr
Comme mentionné,' imagesPath' n'est probablement pas un 'NSString' - essayez' NSLog (@ "% d", [imagesPath isKindOfClass: [NSString class]]); 'pour vérifier –
imagesPath est en fait un NSString, déclaré dans l'en-tête – Emil