这是我的代码 来得到Json的响应字符串
使用这个方法我就能拿到这个字符串
NSDictionary *selector = [json valueForKey: @"Title"];
NSMutableArray *dictArray = [[NSMutableArray alloc] initWithObjects: selector,nil];
str1=[[dictArray objectAtIndex:i] valueForKey:@"CompanyName"];
打印“str1”
我正得到
(
"[email protected]"
),
(
"[email protected]",
"[email protected]"
),
(
"[email protected]"
),
(
"[email protected]"
),
(
"[email protected]"
),
(
"[email protected]"
),
(
"[email protected]"
),
(
"[email protected]"
)
)
我试图通过使用“ ” 操作员来存储阵列
像这样
NSArray *SplitStringArray = [str1 componentsSeparatedByString:@", "];
但我没有把字符串分成一系列元素
谁能帮我一下吗?