AppDelegate.m :-
[window addSubview:tabBarController.view];
WelcomeViewController *aViewController = [[WelcomeViewController alloc] initWithNibName:@"WelcomeViewController" bundle:[NSBundle mainBundle]];
self.viewController = aViewController;
[aViewController release];
[window addSubview:[viewController view]];
AppDelegate.h :-
UITabBarController *tabBarController;
WelcomeViewController *viewController;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@property (nonatomic, retain) WelcomeViewController *viewController;
WelcomeViewController.m :-
-(IBAction)clickBooking:(id)sender {
BookingViewController *bView = [[BookingViewController alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:bView animated:YES];
}
WelcomeViewController.h :-
-(IBAction)clickBooking:(id)sender;
|