Convert NSArray containing NSString to NSString

后端 未结 1 1505
陌清茗
陌清茗 2021-01-16 20:02

So, I have an NSArray containing NSString. How can I convert the NSArray to NSString separating them by new line.

相关标签:
1条回答
  • 2021-01-16 20:47

    Use componentsJoinedByString:

    NSString *combinedString = [myArray componentsJoinedByString:@"\n"];
    
    0 讨论(0)
提交回复
热议问题