display data in alphabetical order iphone

前端 未结 3 2073
逝去的感伤
逝去的感伤 2020-12-20 07:01

How to display xml parsed Data in UITableView In alphabetical order.?

3条回答
  •  眼角桃花
    2020-12-20 07:41

    Actually there are lots of different ways to sort arrays.

    Sort descriptors are only one example.

    Others are sortedArrayUsingComparator, sortedArrayUsingFunction:context, sortedArrayUsingSelector, and new to Mac OS 10.6 and iOS 4.0, sortedArrayWithOptions:usingComparator.

    Those are NSArray methods that return a sorted array.

    NSMutableArray also has variations on those methods that sort the mutable array "in place".

提交回复
热议问题