开发者

how to solve problem with modelview controller

开发者 https://www.devze.com 2023-01-14 18:34 出处:网络
hi i am new to iphone. what i did is creating a class with name classA. In viewdidload of classA i declare a modelview controller and display some text and h开发者_如何学Cide the model view controller

hi i am new to iphone. what i did is creating a class with name classA. In viewdidload of classA i declare a modelview controller and display some text and h开发者_如何学Cide the model view controller afetr 4 sec and create another view in the viewdidload.this is fine but while rotating the simulator to landscape mode simulator automatically rotates to portrait and after 4 sec it back to landscape mode. I already write (Bool)shouldAutoRotateToInterfaceOrientation function.how can i solve this pls help me.


be sure you set your view's autoresizingmask correctly.

0

精彩评论

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

关注公众号