开发者

NSArray sortedArrayUsingSelector

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜