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.
[array objectAtIndex:i]不能用作 L 值,因此不能用于设置索引 i 处的对象。
[array objectAtIndex:i]
使用-insertObject:atIndex:或replaceObjectAtIndex:withObject:。
-insertObject:atIndex:
replaceObjectAtIndex:withObject: