Quelle est la différence entre l'utilisation de ce qui suit:Différence entre objectAtIndex et [0]
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *dir = [paths objectAtIndex:0];
NSString *dir2 = paths[0]; // this throws incompatible type exception
Learning C avant de commencer à utiliser Objective-C est un mouvement intelligent, btw. –
Merci! J'avais l'habitude de programmer en C il y a longtemps. – azamsharp