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 的代价是在容量不足时扩展它的内部列表。
看看这篇博文。