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

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -