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 -

jquery - ReferenceError: CKEDITOR is not defined -

android - Go back to previous fragment -