I am using a UISplitViewController in my iPad app and I dont really like the way the popover view slides in and covers a third of the screen and stays there when in Portrait mode.
I am resizing the Detail view when the popover is slid into view and this works fine except the navigation bar at the top stay the full width (And goes underneath the popover). I basically want it to look like it does when in Landscape mode.
This is the code I use to resize the view:
UIViewController *masterView = [svc.viewControllers objectAtIndex:0];
UINavigationController *detailNavView = [svc.viewControllers objectAtIndex:1];
UIViewController *detailView = [detailNavView.viewControllers objectAtIndex:0];
detailView.view.frame = CGRectMake(masterView.view.frame.size.width, 0, detailView.view.frame.size.width - masterView.view.frame.size.width, detailView.view.frame.size.height);
I have tried settingdetailNavView.view.frame
but nothing happens.
How can I resize the overall detail view including nav bar?