Can't append value to my NSArray variable

偶尔善良 提交于 2020-01-11 14:07:12

问题


I have a NSArray and i need to append some values but array.append doesn't seems to works on a NSArray. What can i use to append something on a NSArray like a normal array


回答1:


You can not add or append element in NSArray as NSArray is immutable.For this you need to take NSMutableArray



来源:https://stackoverflow.com/questions/26948610/cant-append-value-to-my-nsarray-variable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!