【发布时间】:2014-11-23 12:26:33
【问题描述】:
在这里,我试图让twitter 的关注者和关注者都使用
FHSTwitterEngine。这是我获取关注者并添加的代码
dictionary 转换为 NSMutableArray 以在 tableView 中打印。
NSMutableDictionary *dict1 = [[FHSTwitterEngine sharedEngine]listFollowersForUser:usernames isID:NO withCursor:@"-1"];
NSLog(@"====> %@",[dict1 objectForKey:@"users"] );
twttrFrndListVC.twitterFrndList=[dict1 objectForKey:@"users"];
使用上面的代码,我可以获得关注者。但是当我试图同时获得 追随者和追随者,它不起作用。
NSMutableDictionary *dict1 = [[FHSTwitterEngine sharedEngine]listFollowersForUser:username isID:NO withCursor:@"-1"];
NSMutableDictionary *dict2 = [[FHSTwitterEngine sharedEngine] listFriendsForUser:username isID:NO withCursor:@"-1"];
NSLog(@"====> %@",[dict1 objectForKey:@"users"] );
twttrFrndListVC.twitterFrndList=[dict1 objectForKey:@"users"],[dict2 objectForKey:@"users"];
以上代码仅返回关注者姓名。如何获得两者的值
字典?如何将两个NSMutableDictionaries 合二为一
NSMutableArray ?两个字典都有相同的键。
【问题讨论】:
标签: objective-c nsmutablearray nsmutabledictionary ios7.1 fhs-twitter-engine