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

my app runs only in portrait mode .
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.
These should take care of anything that would block your fullscreen.