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.
指定されたインデックスでオブジェクトを返し、このオブジェクトをインデックスから削除し、それに応じて配列をソートする nsmutablearray のメソッドの名前が必要です。
さて、あなたは2つの異なるものを探しています。配列内の特定のインデックスにあるオブジェクトを取得するには、 を使用します-[NSMutableArray objectAtIndex:]。特定のインデックスでオブジェクトを削除するには、-[NSMutableArray removeObjectAtIndex:].
-[NSMutableArray objectAtIndex:]
-[NSMutableArray removeObjectAtIndex:]