Question

Est-ce valable:

 NSObject anObject = [[NSObject alloc] init];
 [array1 addObject:anObject];
 [array2 addObject:anObject];

Mon argent est oui, puisque je ne fais que d'ajouter des références au même objet, ou je me trompe ici?

Était-ce utile?

La solution

Oui :) Ne pas oublier de faire un tableau mutable

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top