iOS.Lover
iOS.Lover

Reputation: 6051

Issue with make an UIView fullscreen

I am trying make a UIView fullscreen but the problem is my view does not cover all the screen here is my code :

    PDFView.frame = [[UIScreen mainScreen] applicationFrame];
    PDFView.frame = self.view.bounds;
    [PDFView setNeedsLayout];

enter image description here

my app runs only in portrait mode .

Upvotes: 1

Views: 1328

Answers (1)

Codemonk
Codemonk

Reputation: 51

By not covering the full screen do you mean that the navbar and/or tabbar are still there? If so, check to make sure that you've done these in the view controllers viewDidLoad.

[[UIApplication sharedApplication] setStatusBarHidden:YES];    
 [self.navigationController setNavigationBarHidden:YES]
 [self.tabBarController.tabBar.hidden = YES]

These should take care of anything that would block your fullscreen.

Upvotes: 1

Related Questions