You can create a UINavigationController and use it as the container of your viewController.
- (void)loginViewShowingLoggedInUser:(FBLoginView *)loginView {
self.statusLabel.text = @"You're logged in as";
HomeNavViewController *profileviewController = [[HomeNavViewController alloc] init];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController: profileviewController] ;
CATransition *transition = [CATransition animation];
transition.duration = 0.3;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromRight;
[self.view.window.layer addAnimation:transition forKey:nil];
[self presentModalViewController:nav animated:NO];
}
Override the method viewWillAppear
in YourViewController
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated] ;
self.title = @"Sender" ;
}