iPhone sdk中的Twitter粉丝

时间:2011-07-09 07:17:19

标签: iphone sdk

如何在iPhone sdk中创建Twitter粉丝列表我使用 MGTwitterEngine ,当我尝试以下方法时:

[_engine getFollowersIncludingCurrentStatus:NO];

我没有得到关注者名单

1 个答案:

答案 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"];

}