Comment inverser le contenu de NSArray en Objective-C?Comment inverser le contenu de NSArray en Objective-C?
Supposons que j'ai un tableau qui contient ces données
NSArray arrayObj = [[NSArray alloc]init];
arrayObj atindex 0 holds this: "1972"
arrayObj atindex 1 holds this: "2005"
arrayObj atindex 2 holds this: "2006"
arrayObj atindex 3 holds this: "2007"
Now i want to inverse the order of array like this:
arrayObj atindex 0 holds this: "2007"
arrayObj atindex 1 holds this: "2006"
arrayObj atindex 2 holds this: "2005"
arrayObj atindex 3 holds this: "1972"
Comment cela ?? ACHIVE
Merci.
u peut bien vouloir me tel dans le code. – suse
Jop, édité mon post acccordingly – Gauloises
ne pas le reversionhappen si la valeur du tableau est dans la chaîne -à-dire « 03/05/1972 » « 2005/08/02 » « 2006/02/06 » « 2006/03/10 " – suse