如何在iphone中将数组保存为字符串?

Mas*_*adi 1 arrays cocoa-touch nsstring ios

我想知道如何在iPhone中的字符串中保存数组(Objective-c).因为我有一个数据数组

数组[0] = 01数组[1] = 02数组[2] = 03数组[3] = 04

现在我想将它保存在这样的字符串中

NSString *string = @"01, 02, 03, 04";
Run Code Online (Sandbox Code Playgroud)

如果你有一些想法,请帮助我,我是这个领域的新手.

提前.

Jon*_*pan 12

[myArray componentsJoinedByString: @", "] 应该这样做.