2011-07-09 44 views
0

如何使iPhone SDK的Twitter追隨者列表餘米使用MGTwitterEngine,當我嘗試以下方法:Twitter的追隨者在iPhone SDK

[_engine getFollowersIncludingCurrentStatus:NO]; 

我很老的追隨者列出

回答

1

USE like [_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是具有字典和方法等

- (NSString *)tweet { 
    return [tweets objectForKey:@"text"]; 

} 
模型類