【发布时间】:2011-07-09 16:35:33
【问题描述】:
我正在使用 MGTwitterEngine 以及尝试以下方法时如何在 iPhone sdk 中制作 Twitter 关注者列表:
[_engine getFollowersIncludingCurrentStatus:NO];
我没有得到关注者列表
【问题讨论】:
我正在使用 MGTwitterEngine 以及尝试以下方法时如何在 iPhone sdk 中制作 Twitter 关注者列表:
[_engine getFollowersIncludingCurrentStatus:NO];
我没有得到关注者列表
【问题讨论】:
像[_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"];
}
【讨论】: