Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
多くの異なるデータを含むjsonデータベースがあります。このデータを配列に保存しましたが、これをアルファベット順に並べ替えたいと思います。誰かが私にこれを行う方法を教えてもらえますか?
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"Attribute Name" ascending:NO]; NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil]; [request setSortDescriptors:sortDescriptors];