Reputation: 1436
I find that UIViewController's view's coordinate is (0,20),size is 1024*748 in MainStoryboard_iPad.storyboard ,and I can't change.How can I change view to (0,0) and size is 1024*768 ,so I can show the view full sceen.
Upvotes: 0
Views: 117
Reputation: 1694
It is Due to status bar of size 20 present on the top. In the storyboard you could go to attributes inspector and change Status bar to none. Which will show full view of size (1024, 768)which can be helpful for setting view by storyboard. And than in view controller's .m file write below method :
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[UIApplication sharedApplication]setStatusBarHidden:YES withAnimation:NO];
}
Upvotes: 1
Reputation: 1009
That is probably because of the status bar. You can hide the status bar as such [[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES];
Upvotes: 1