iphone - Forcefully device orientation to Portrait not working in iOS 9 -
i using code snippet forcefully change device orientation. working fine before ios 9 not working ios 9.
nsnumber *value = [nsnumber numberwithint:uiinterfaceorientationportrait]; [[uidevice currentdevice] setvalue:value forkey:@"orientation"];
is there alteration available in ios 9?
Comments
Post a Comment