开发者

UIButton Origin and Device Orientation

开发者 https://www.devze.com 2022-12-23 18:40 出处:网络
I have a view controller that is set to auto rotate to orientation.Inside I\'ve got two subviews.One is a uibutton.All I want is for my button\'s origin to stay locked to the bottom-left in portrait a

I have a view controller that is set to auto rotate to orientation. Inside I've got two subviews. One is a uibutton. All I want is for my button's origin to stay locked to the bottom-left in portrait and bottom-right in landscape (so it basically stays in the same place).

It should also stay in place for portrait upsi开发者_如何学Gode down and landscape right.

Any ideas?


Use autoresizing.

UIButton Origin and Device Orientation


(source: xanga.com)

0

精彩评论

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

关注公众号