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 方法的名称,它返回给定索引处的对象,然后从索引中删除该对象,然后对数组进行相应的排序。
好吧,您正在寻找两种不同的东西。要检索数组中特定索引处的对象,请使用-[NSMutableArray objectAtIndex:]. 要删除特定索引处的对象,请使用-[NSMutableArray removeObjectAtIndex:].
-[NSMutableArray objectAtIndex:]
-[NSMutableArray removeObjectAtIndex:]