I have an application using the UITabBarController, and I have another view that needs to slide due to the tab controls, but before the contents of the tab bar. If this is unclear, imagine an ad deployed in a tabbed application that appears in front of everything except the buttons on the tab bar.
So far I have a code that looks something like this, but I am ready to change it if there is a better way to do this ...
tabBarController.viewControllers = [NSArray arrayWithObjects:locationNavController, emergencyNavController, finderNavController, newsNavController, nil]; aboutView = [[AboutView alloc] initWithFrame:CGRectMake(0, window.frame.size.height - tabBarController.tabBar.frame.size.height - 37 , 320, window.frame.size.height - tabBarController.tabBar.frame.size.height)]; [window addSubview:tabBarController.view]; // adds the tab bar view property to the window [window addSubview:aboutView]; // this is the view that slides in [window makeKeyAndVisible];
AboutView is currently a subclass of UIView and is in the starting position at the bottom, but hides the tabBarController. How can I change this so that the tabs are on top, but still have aboutView in front of other content?
objective-c iphone uiview uitabbarcontroller depth
shulmey
source share