将数组拼接成字符串

2016-06-26  本文已影响80人  PlatonsDream

//字符串转变为数组1

NSMutableString

//字符串转变为数组2

NSMutableArray

//替换数组中的某个值

[array replaceObjectAtIndex:4 withObject:@
"2"
];

//把数组转换成字符串

NSString
*ns=[array componentsJoinedByString:@
","
];

上一篇下一篇

猜你喜欢

热点阅读