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.
我有一个 nsmutable 数组,这是它的内容:
Longitude, Latitude, Name, Town
这 4 个条目在我的数组中是 14 次。
我的问题是,我无法将“距离”添加到我的数组中。
请帮忙!
您只能将对象添加到 NSMutableArray,而不是例如浮点数。因此,如果“距离”是一个类,并且您实例化了它,则可以使用 addObject: 方法添加实例。