Why do I see in some sample code from Apple (such as PhotoScroller) that I should do the following in loadView
:
CGRect frame = [[UIScreen mainScreen] bounds];
instead of
CGRect frame = [[UIScreen mainScreen] applicationFrame];
Does it make a difference to get the main screen's frame?
iOS 9 Update
When using the Split View feature on the iPad, applicationFrame
returns the size of your app window. bounds
always returns the size of the device.
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