範囲オブジェクトをNSMutable配列、つまり[{5、12} {0、4} {18、10}]に追加しました。次に、このNSMutable配列を昇順で並べ替えます。次のコードを使用して、NSMutable配列オブジェクトを昇順で取得しています。
NSArray *stringIndexes = [StringIndexes copy];
stringIndexes = [stringIndexes sortedArrayUsingSelector:@selector(compare:)];
NSLog(@"stringIndexes..:%@",stringIndexes);
しかし、それは必要な出力を与えていません。範囲オブジェクトを持つNSMutable配列をソートする方法を誰かが知っている場合。私を助けてください。
ありがとうございます。