I have a UIWebView that I would like to load different URLs depending on whether its portrait or landscape. How can I figure out what my current orientation is inside viewWillAppear?
I have a UIWebView that I would like to load different URLs depending on
Share
Use UIApplication’s
statusBarOrientationproperty. You may run into problems if you use the device orientation if it isUIDeviceOrientationFaceUporUIDeviceOrientationFaceDown.Example