MGTwitterEngine Showing Friend Updates
I'm using MGTwitterEngine for an iPhone app. I've m开发者_如何学Canaged to get it to send updates but can not for the life of me get it to show the user's friends timeline. (i'm a newb programmer) I was hoping someone could post the code to do so. I can do the formating and link the interface builder to the data source. just need to know how to call it from my main View Controller file. Any help is greatly appreciated.
[_engine getFollowedTimelineFor:user sinceID:0 startingAtPage:0 count:10]
this will return you a request identifier you also need to implement a
- (void)statusesReceived:(NSArray *)statuses forRequest:(NSString *)connectionIdentifier
to pick up the results and marry them with your request. These you would probably display in a UITableView
just keep this method in viewdidload or viewDidAppear and run it
[_engine getRecentlyUpdatedFriendsFor:nil startingAtPage:0];//Following [_engine getFollowersIncludingCurrentStatus:YES]; //followers
you find info on console,
精彩评论