UIButton Origin and Device Orientation
Posted
by Ward
on Stack Overflow
See other posts from Stack Overflow
or by Ward
Published on 2010-03-19T21:45:08Z
Indexed on
2010/03/20
6:31 UTC
Read the original article
Hit count: 528
Hey there,
I might be crazy, but for some reason this problem is stumping me.
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 upside down and landscape right.
Any ideas?
Thanks, Howie
© Stack Overflow or respective owner