1
在这里,我试图使用 FHSTwitterEngine
同时获得twitter
的关注者和关注者。这里是我的代码,获取关注者并将 dictionary
添加到NSMutableArray
中以打印tableView
。在1个NSMutableArray中添加两个NSMutableDictionaries
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"];
上面的代码仅返回关注者姓名。我如何获得 字典的值?如何在一个 NSMutableArray
中添加两个NSMutableDictionaries
?这两本字典都有相同的密钥。
非常感谢亲爱的... Thankeww非常@dfinki。你节省了我的时间。 – 2014-09-29 07:57:16
您的欢迎。能够在星期一上午帮忙是一个好的开始! @iDev – dfinki 2014-09-29 09:14:33