【问题标题】:Twitter Followers in iPhone sdkiPhone sdk 中的 Twitter 关注者
【发布时间】:2011-07-09 16:35:33
【问题描述】:

我正在使用 MGTwitterEngine 以及尝试以下方法时如何在 iPhone sdk 中制作 Twitter 关注者列表:

[_engine getFollowersIncludingCurrentStatus:NO];

我没有得到关注者列表

【问题讨论】:

    标签: iphone sdk


    【解决方案1】:

    [_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"];
    
    }
    

    【讨论】:

      猜你喜欢
      • 2011-11-26
      • 2012-07-20
      • 2014-01-06
      • 2013-06-28
      • 2013-07-01
      • 2015-10-26
      • 2021-05-22
      • 1970-01-01
      相关资源
      最近更新 更多