I have an iOS app that integrated with FBLoging. And I know it can assign the profile picture into a UIView
like this.
// This method will be called when the user information has been fetched
- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
user:(id<FBGraphUser>)user {
self.profilePictureView.profileID = user.id;
}
But what I wanna do is to get that profile picture into my already available UIImageView
. In order to do this I have a Singleton class. I want to get that image as a UIImage
and assign to the variable inside that Singleton class. When another Viewcontroller
load I want to assign that singleton class's UIImage
into my Viewcontroller
's UIImageView
How can I do this. please help me. Thank you