I am trying to figure out what orientation the iphone has in the simulator and instead of giving it to me using the UIDevice orientation property I just get UIDeviceOrientationUnknown.
Does this property not work in the simulator? What could be the possible reason for this happening?
I am using opengl es
You can also use:
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
which works even without calling beginGeneratingDeviceOrientationNotifications
.
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