Possible Duplicate:
Convert NSArray to NSString in Objective-C
我有一阵列,内容是:
(
"<MPConcreteMediaItem: 0x1b7dd0> 8671085923283003246",
"<MPConcreteMediaItem: 0x1b7e50> 16275751483823231324",
"<MPConcreteMediaItem: 0x1b7e70> 4976771456698615367"
)
我将以下守则用于指定一个安保部,以制定我的标准:
NSString *myString = [myArray description];
而现在仍然如预期的那样:
(
"<MPConcreteMediaItem: 0x1b7dd0> 8671085923283003246",
"<MPConcreteMediaItem: 0x1b7e50> 16275751483823231324",
"<MPConcreteMediaItem: 0x1b7e70> 4976771456698615367"
)
现在,我要说,我要把我的雕刻改成一个叫做新阵列的阵列。
NSArray *newArray = [[NSArray alloc]init];
newArray = [myString componentsSeparatedByString:@","];
但新阿雷拉的内容现在有所不同:
(
"(
"<MPConcreteMediaItem: 0x1b7dd0> 8671085923283003246"",
"
"<MPConcreteMediaItem: 0x1b7e50> 16275751483823231324"",
"
"<MPConcreteMediaItem: 0x1b7e70> 4976771456698615367""
)"
)
Any idea what I need to do to fix this?