In my app for iPad, I have first a welcome screen then home screen and then home screen navigates to rest of the screens. I have made a button on navigation bar of the home screen which takes the user back to the welcome screen. But that button is shown on all other screens as well. I want to remove that button from all the screens and show it only in the home screen. How can I hide that button from all other screens and make it visible only on the home screen?

Here is the code which I wrote for that button in viewDidLoad of Home:

PHP Code:
CGRect frame4 CGRectMake(;
UIImage *buttonImage4 = [UIImage imageNamed:@"InfoIcon.png"];
UIButton *InfoButton = [UIButton buttonWithType:UIButtonTypeCustom];
InfoButton.frame frame4;
InfoButton setBackgroundImage:buttonImage4 forState:UIControlStateNormal];
InfoButton.contentVerticalAlignment UIControlContentVerticalAlignmentCenter;
InfoButton.contentHorizontalAlignment UIControlContentHorizontalAlignmentCenter;
InfoButton addTarget:self action:@selector(infoforControlEvents:UIControlEventTouchUpInside];
InfoButton setBackgroundColor:[UIColor clearColor]];
self.navigationController.navigationBar addSubview:InfoButton];