快速連結

2011年8月25日

筆記使用Array Sort來排序自己做的物件


  NSSortDescriptor *sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"object_name" ascending:YES] autorelease];
  NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
  NSArray *sortedArray  = [MyWantSortArray sortedArrayUsingDescriptors:sortDescriptors];

沒有留言:

張貼留言

歡迎大家留言提問,我會答的都會盡力回答!
如果太久沒出現回應就是我又忘記回來看留言了TAT