0
我有陣從中我得到抽象的價值是NewsValue響應爲空創建的NSDictionary
(
{
NewsId = 12;
NewsValue = "{\n abstract = \"Today P.M of India Mr. Narender Modi visited for the eve of Agarasen \\njayanti
\\n\";\n created = 1444733102;\n imgUrl = \"\";\n nid = 12;\n title = \"Latest news\";\n}";
Title = "Latest news";
}
)
我想下轉換NewsValue在字典。
NSData *data = [[[tableDataArray objectAtIndex:indexPath.row]objectForKey:@"NewsValue"] dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary *jsonResponse = [NSJSONSerialization JSONObjectWithData:data
options:kNilOptions
error:&error];
NSLog(@"%@",jsonResponse);
他們給出的答覆爲空。