开发者

orientation auto rotation

开发者 https://www.devze.com 2023-01-12 23:32 出处:网络
i have 2 different views for a single nib. when i rotate the screen on iphone \"simulator\", the view rotates perfectly fine and the output is the desired one. but when i deploy my project on iphone a

i have 2 different views for a single nib. when i rotate the screen on iphone "simulator", the view rotates perfectly fine and the output is the desired one. but when i deploy my project on iphone and go through the same process the view doesnot change on changing the phone orientation ?

in view did appear i have used

[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; but still no effect. i dont know why it is working开发者_高级运维 fine on simulator but not on iphone. I will be really pleased if u help me out.


This may sound ridiculous but do you have the orientation lock turned on? (Padlock in the status bar).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号