我是新的iPhone SKD.I想知道如果我复制(我的意思是可变的复制/复制)从一个数组到所有对象。 这里是我的代码:拷贝/ mutablecopy阵列
NSSortDescriptor* DateSorter = [[NSSortDescriptor alloc] initWithKey:@"lounge_rating" ascending:NO];
NSMutableArray *temp = [appdelegate.LongeListArray mutableCopy];
[temp sortUsingDescriptors:[NSArray arrayWithObject:DateSorter]];
appdelegate.LongeListArray = temp;
[table reloadData];
[DateSorter release];
我想知道我应该发布临时数组或不请帮助me.thanking你...
嗨@Dipen Chudasama,我没有让你知道为什么它会产生内存泄漏,如果我们释放它? –
请试试看。 –