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

php - mySQL problems with this code? -

java - Checkbox item adds to spinner -

java - Can't access ArrayList in other view? android null pointer exception -