Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

damon patron
4,692 PointsPassing data between views
i have creates a login view which enables you to login with facebook, i have watched tutorials on youtube on how to pass data between views but is it different with facebook info. for one i dont know if i have to place the delegates in the profileViewControllers (where the the profilePicture, name, log in status are) or i have to place them in the loginViewController i tried to pass the data like so
this is in the loginViewController
// this method will be called when the user information has been fetched - (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user: (id<FBGraphUser>)user
{
HomeViewController *profile = [[HomeViewController alloc] init];
profile.namePass.text = user.name;
profile.profilePicturePass.profileID = user.id;
}
i created the properties in profileViewController.h
@property (strong ,nonatomic) FBProfilePictureView *profilePicturePass;
@property (strong, nonatomic) UILabel *namePass;
and placed this in viewDidLoad: in profileViewController.m
self.profilePictureView = self.profilePicturePass;
self.nameLabel = self.namePass;
i dont know what im doing wrong i followed the tutorial on passing data but there is not specific tutorial for facebook info if it is different please help thanks