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

Popular posts from this blog

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -