如何在iPhone sdk中创建Twitter粉丝列表我使用 MGTwitterEngine ,当我尝试以下方法时:
[_engine getFollowersIncludingCurrentStatus:NO];
我没有得到关注者名单
答案 0 :(得分:1)
USE,如[_engine getFollowersIncludingCurrentStatus:YES];
调用SOAuthEngine方法获取控制台上的列表
- (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier {
NSLog(@"User Info Received: %@", userInfo);
followers = [[NSMutableArray alloc]init];
for (NSDictionary *u in userInfo ) {
Tweet *tweet = [[Tweet alloc]initWithTweetDictionary:u];
[followers addObject:tweet];
[tweet release];
}
[self.tableView reloadData];
}
Tweet是具有Dictionary和
方法的模型类- (NSString *)tweet {
return [tweets objectForKey:@"text"];
}