AppDelegate.m -
[nadokienny addSubview: tabBarController.view];
WelcomeViewController *aViewController = [[WelcomeViewController alloc] initWithNibName: @ " WelcomeViewController " plik: [NSBundle mainBundle]];
self.viewController = aViewController;
[aViewController uwolnienie];
[nadokienny addSubview: [viewController widok]];
AppDelegate.h -
UITabBarController *tabBarController;
WelcomeViewController *viewController;
@property (*tabBarController, utrzymywać) IBOutlet UITabBarController *tabBarController;
@property (*viewController, utrzymywać) WelcomeViewController *viewController;
WelcomeViewController.m -
- (IBAction) clickBooking: (id) nadawca {
BookingViewController *bView = [[BookingViewController alloc] initWithNibName: zero plik: zero];
[jaźń presentModalViewController: bView animować: TAK];
}
WelcomeViewController.h -
- (IBAction) clickBooking: (id) nadawca;
|