Not sure why UIView is being nudged up by around 10px

后端 未结 5 849
萌比男神i
萌比男神i 2020-12-09 12:10

I\'ve created a simple iPhone app which has two .xib files. In the app delegate at application did finish launching I display the first .xib file by calling:



        
5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 13:08

    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];
    

    It works fine for me now, good luck~ :)

提交回复
热议问题