I'm initializing a UIView
with the frame: CGRectMake(0, 0, 1024, 768)
. Everything seems right, until its superview enters the viewDidAppear:
method. The frame changes to 768, 1024
. The problem only occurs when the Status bar is initially hidden
property is set to YES
. The frame does not change if the status bar is shown.
I have checked the UIInterfaceOrientation
in viewWillAppear:
and viewDidAppear:
and it does not change between the two methods.
Why does the frame's height and width swap when the status bar is hidden?
In app delegate
set wantsFullScreenLayout
property of viewController
to YES.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With