I have UINavigationControllerthat when an event is triggered, I need to UIViewdisplay only under NavigationBar, but not interfere with the current one ViewController. I will also need to be made UIViewpermanent, as the controllers will be unloaded / shifted.
-----------------
| Status Bar |
-----------------
| Nav Bar |
-----------------
| Custom View |
-----------------
| |
| View Controller |
| |
-----------------
Currently I have installed CustomView (UIView):
- (id)initWithNavigationController:(UINavigationController *)navController {
self.navController = navController;
return [self init];
}
- (id)init
{
CGRect viewFrame = self.navController.view.frame;
return [self initWithFrame:CGRectMake(viewFrame.origin.x,
self.navController.navigationBar.frame.origin.y + self.navController.navigationBar.frame.size.height,
viewFrame.size.width,
40.0)];
}
Is that so?
source
share