In my app delegate interface I have:
@interface pivcalc1AppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
IBOutlet UITabBarController *RootController;
}
@property (nonatomic, retain) IBOutlet UIWindow *Window;
@property (nonatomic, retain) IBOutlet UITabBarController *RootController;
in implementation, I have:
@synthesize Window;
@synthesize RootController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
[Window addSubview:RootController.view];
// Override point for customization after application launch.
[self.Window makeKeyAndVisible];
return YES;
}
In my main xib window I have a tab bar controller which is connected to app delegate as rootController.
When I run the program, the window shows but the tab bar view does not get loaded.
Appreciate any help. Thanks.
Are you have a subViewController in RootController in xib? if you’re not, It’s code following.
UITabBarController should be have a subViewController.