incompatible Dans Objective C, j'ai:Envoi 'vide' au paramètre de type 'id'
NSMutableArray *retVal = [[NSMutableArray alloc]initWithCapacity:1];
NSMutableString *justTest = [[NSMutableString alloc]initWithString:@"hello"];
unsigned char ch = //anything
[retVal insertObject:[justTest appendFormat:@"%hhu", ch] atIndex:0]; //error here
Code X 5.1.1 me donne une erreur dans la 4e ligne (comme mentionné comme commentaire) comme Sending 'void' to parameter of incompatible type 'id'
Qu'est-ce que je fais mal ici? Toute aide est appréciée.
Ok got it !! C'est pourquoi le compilateur pleurait sur le «vide». – Sibir