开发者

Orientation in iPhone?

开发者 https://www.devze.com 2023-01-29 04:28 出处:网络
In my application, I use Orientation, I have to change the size of the controls according to the orientation. I have used a flag and according to that flag I change the size of t开发者_运维问答he cont

In my application, I use Orientation, I have to change the size of the controls according to the orientation. I have used a flag and according to that flag I change the size of t开发者_运维问答he controls. But my doubt is, will this orientation affect every time, when user rotates the phone?


I think, better you use view.autoresizingMask instead of changing the view sizes wrt orientation. Otherwise, it will change the size, but still, the orientation-size code will be called again n again.

0

精彩评论

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

关注公众号