I have NSMutableArray that i need to sort . to do so i use sortedArrayUsingSelector this f开发者_如何学Pythonunction return me NSArray with the objects sorted.
my question is: if i want to sort the original array again do i need to release the previous sorted list that i got or just to sort it again ??
thanks
The original an array and sorted array (the array that gets created by get created from sortedArrayUsingSelector) are different objects. So yes, if you won't use the 'previous sorted list' again, release it.
精彩评论