UIButton Origin and Device Orientation
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.
(source: xanga.com)
精彩评论