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

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -