¡@

Home 

2014/10/15 ¤U¤È 10:12:20

iphone Programming Glossary: oldarray

How to sort array having numbers as string in iPhone? [duplicate]

http://stackoverflow.com/questions/6097119/how-to-sort-array-having-numbers-as-string-in-iphone

array in acsending order iphone arrays sorting share improve this question NSArray sortedArray nil sortedArray oldArray sortedArrayUsingFunction sortArray context NULL NSInteger intSort id num1 id num2 void context OR float n1 num1 floatValue..

Deep Copy and Shallow Copy

http://stackoverflow.com/questions/9912794/deep-copy-and-shallow-copy

and a shallow copy . Now I got some doubt that when we made a shallow copy by newArray NSmutableArray arrayWithArray oldArray the new array will point to oldArray. As from the figure . Now what happen when I remove object from newArray As from figure.. doubt that when we made a shallow copy by newArray NSmutableArray arrayWithArray oldArray the new array will point to oldArray. As from the figure . Now what happen when I remove object from newArray As from figure it should remove same element from.. from the figure . Now what happen when I remove object from newArray As from figure it should remove same element from oldArray too It seems like newArray oldArray is a shallow copy and newArray NSmutableArray arrayWithArray oldArray is deep copy...