I am working in an iOS app that let the user logged in using his Facebook account. we the user logged in i want to push the profile ViewController filled with the user data ; sorry for this long preliminary .
the problem is when i use instantiateViewControllerWithIdentifier
method to initiate the profile view controller . its outlet component are all nil
here is the code where i face the problem
- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
user:(id<FBGraphUser>)user {
profileViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"CGProfileViewController"];
profileViewController.fbProfilePictureView.profileID=user.objectID;
profileViewController.nameLabel.text=user.name;
profileViewController.locationLabel.text=user.location.location.city;
// [self presentViewController:profileViewController animated:YES completion:nil]
}
is there any problem with my code ? what should i do ? Thanking in advance