Here,I am trying to get both the followers and followings of twitter
using
FHSTwitterEngine
. Here is my code to get followers and adding
dictionary
into NSMutableArray
to print in a tableView
.
NSMutableDictionary *dict1 = [[FHSTwitterEngine sharedEngine]listFollowersForUser:usernames isID:NO withCursor:@"-1"];
NSLog(@"====> %@",[dict1 objectForKey:@"users"] );
twttrFrndListVC.twitterFrndList=[dict1 objectForKey:@"users"];
Using above code,I can get followers. But when i try to get both followers and followings,it doesn't work.
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"];
Above code returns followers name only. How can I get values of both
dictionaries ? How can I add two NSMutableDictionaries
in one
NSMutableArray
? Both the dictionaries have same keys.