I try to show UIView of HomeViewController as modal of TabBarViewController.
I want UIView display over TabBar and there 's TabBar at bottom of screen.
Although, setting setting UIView of HomeController 's width and height to 320 x 320 px does not prevent the view to show full screen. It cover UITabBar and I can not see UITabBar at button of screen when application start up.
This is my code.
//in TabBarWithHomeAppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method
homeViewController = [[HomeViewController alloc]
initWithNibName:@"HomeViewController" bundle:nil];
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];
self.tabBarController.view.frame = CGRectMake(0, 0, 320, 320);
[self.tabBarController presentModalViewController:homeViewController animated:NO];
return YES;
Interface builder short screen
in Simulator
and this is my source code
Any suggestion is valuable.
Thanks,