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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -