I have a UINavigationController that appears with an offset of 20 pixels. This is the exact problem I am facing: http://forums.macrumors.com/showthread.php?t=761616 But I cannot figure out how to solve it correctly.
Thanks,
After I looked at a possible solution, people said that it should be offset by 20 pixels programmatically. Here is my solution:
// adjust the frame of subview which is going to be add self.navController.view.frame = CGRectMake(0, 0, 320, 460); [self.view addSubView:self.navController.view];
Now it works great for me, good luck ~ :)
The solution to this problem is to set the splitviewcontroller framework to [[UIScreen mainScreen] bounds]; eg
[[UIScreen mainScreen] bounds];
self.mSplitViewC.view.frame = [[UIScreen mainScreen] bounds];
Make sure the frame is set to (0,0). This is probably space because you add 20 pixels to the Y position to compensate for the status bar, but this is already being processed for us.
Have you added the status bar as the top bar from Interface Builder ?. You may have saved space for the status bar.
Source: https://habr.com/ru/post/1314802/More articles:User drawing with Android flash navigator - androidOperator overloading - javaForward declaration with friend function: invalid use of incomplete type - c ++Python and C join - cIs there something like $ ('a # link_id'). Activate () in jQuery? - jqueryJust starting with Rails - Is it really a buggy at the moment or is it just me? - ruby | fooobar.comlike console with Google Chrome - phpIs there a .Net shell or driver for the Cassandra NoSQL database? - .netJQuery: finding an element with a class name stored in a variable - jqueryHTACCESS RewriteCond without spoiling the local host - redirectAll Articles