i able user name , profile image of twitter in app.here code
- (void) oauthtwittercontroller: (sa_oauthtwittercontroller *) controller authenticatedwithusername: (nsstring *) username { nslog(@"authenticated user %@", username); imageview.image = [uiimage imagewithdata:[nsdata datawithcontentsofurl:[nsurl urlwithstring: [nsstring stringwithformat:@"http://api.twitter.com/1/users/profile_image/%@.json",username]]]]; nslog(@"http://api.twitter.com/1/users/profile_image/username.json"); recenttweets = [[nsmutablearray alloc] init]; [self updatestream:nil]; }
now want logged in user's profile image...any 1 knows this?
i sure have gotten if not can maybe help.
depending on how want image show assume making view iboutlet uiimage place users profile image on specific page. have of code
mainavatar.image = [uiimage imagewithdata:[nsdata datawithcontentsofurl:[nsurl u rlwithstring:@"http:// place json here" ]]];
then make iboutlet within view want appear on , connect , should good. place in viewdidload method when page loads wont image..... tell me how placed profile image in table cell , even! ha getting them download reason wont load in table view
Comments
Post a Comment