iPhone中的Twitter
我正在集成twitterapi(OAuth+MGTwitter)。我可以登录并获得我关注的所有人的所有推文。现在我只想从一个账户(人)获得推文。我怎么才能得到别人的推特呢 描述:假设我只想看@XXX_123的推文 代码:`iPhone中的Twitter,iphone,objective-c,ios,twitter,Iphone,Objective C,Ios,Twitter,我正在集成twitterapi(OAuth+MGTwitter)。我可以登录并获得我关注的所有人的所有推文。现在我只想从一个账户(人)获得推文。我怎么才能得到别人的推特呢 描述:假设我只想看@XXX_123的推文 代码:` #pragma mark UITableViewDataSource Methods - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
#pragma mark UITableViewDataSource Methods
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [tweets count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *identifier = @"cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
if(!cell) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewStyleGrouped reuseIdentifier:identifier];
//[cell setBackgroundColor:[UIColor clearColor]];
}
[cell.textLabel setNumberOfLines:7];
[cell.textLabel setText:[(Tweet*)[tweets objectAtIndex:indexPath.row] tweet]];
return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return 150;
}
`
问候 您必须使用my MGTwitter提供的各种方法来获得各种结果。用于获取特定人的推文
twitterEngine=[[MGTwitterEngine alloc]initWithDelegate:self]
[twitterEngine getUserTimelineFor:username-sinceID:0开始页面:0计数:15]代码>
其中username是要检索推文的用户,您必须使用my MGTwitter提供的各种方法来获得各种结果。用于获取特定人的推文
twitterEngine=[[MGTwitterEngine alloc]initWithDelegate:self]
[twitterEngine getUserTimelineFor:username-sinceID:0开始页面:0计数:15]代码>
其中username是您要检索推文的用户,感谢回复。我将在哪个文件中找到这些方法?感谢回复。我将在哪个文件中找到这些方法?