UPDATE 2
I ran and tested my application in iOS Simulator using a 4-inch device. If I launch using a 3.5 inch device, the shortcut does not jump. In my .xib, under the "Simulated metrics" section, I set it as a 4-inch full-screen Retina mode. Any idea why I only see this problem on a 4 inch device?
UPDATE 1
In IB, if I select “Navigation Bar” in Simulated Metrics, my label still jumps. The only way I can get my label to display correctly on the initial screen is to not set the navigation controller as my root window controller.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In my window, the rootViewController is set to UINavigationController, which rootViewController has a built-in UIPageViewController.
When my application loads, the original view is represented by content that is slightly pushed down, about the same size as the navigation bar. When I view the pageViewController, the content jumps to where it was placed in the nib, and all the other view controllers loaded with the pageViewController are accurate.

In my app appDelegate:
self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:[ContainerViewController new]];
In ContainerViewController:
- (void)viewDidLoad { [super viewDidLoad]; self.pvc = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil]; self.pvc.dataSource = self; self.pvc.delegate = self; DetailViewController *detail = [DetailViewController new]; [self.pvc setViewControllers:@[detail] direction:UIPageViewControllerNavigationDirectionForward animated:false completion:nil]; [self addChildViewController:self.pvc]; [self.view addSubview:self.pvc.view]; [self.pvc didMoveToParentViewController:self]; }
ios objective-c xcode uinavigationcontroller uipageviewcontroller
djibouti33 Aug 13 '13 at 6:52 2013-08-13 06:52
source share