ios - UIViewController interfaceOrientation Property Deprecated -
i utilizing interfaceproperty of uiviewcontroller of ios 8 has been deprecated.
@property(nonatomic,readonly) uiinterfaceorientation interfaceorientation ns_deprecated_ios(2_0,8_0);
i using said property determining physical home button orientated accelerometer , gravity vector corrections. uideviceorientation not suitable replacement because these corrections applied user interface.
i have searched suitable refactoring advice, however, not apply use of property.
you can try using
uiapplication.sharedapplication().statusbarorientation
it return uiinterfaceorientation value can use interface orientation of device.
Comments
Post a Comment