我有一个这样的NSDictionary对象:
dictionary: {
data = {
"access_token" = "xxx";
"expires_in" = 00;
"refresh_token" = "yyy";
"token_type" = bearer;
};
}
如何展平它以便删除“数据”对象?有快速的方法吗?
因此输出应如下所示:
dictionary: {
"access_token" = "xxx";
"expires_in" = 00;
"refresh_token" = "yyy";
"token_type" = bearer;
};
最佳答案
NSDictionary *dataDict = [mainDict objectForKey:@"data"];