これがjson応答文字列を取得するための私のコードです
このメソッドを使用してこの文字列を取得しています
NSDictionary *selector = [json valueForKey: @"Title"];
NSMutableArray *dictArray = [[NSMutableArray alloc] initWithObjects: selector,nil];
str1=[[dictArray objectAtIndex:i] valueForKey:@"CompanyName"];
「str1」を印刷するには
私は得ています
(
"hello@developer.com"
),
(
"hello@developer.com",
"helloworld@microsoft.com"
),
(
"hello@developer.com"
),
(
"hello@developer.com"
),
(
"hello@developer.com"
),
(
"hello@developer.com"
),
(
"hello@developer.com"
),
(
"hello@developer.com"
)
)
「、」演算子を使用して配列に格納しようとしています
このように
NSArray *SplitStringArray = [str1 componentsSeparatedByString:@", "];
しかし、文字列を要素の配列に分割しませんでした
誰か助けてくれませんか?