I am building an iphone app that has a small button at the right corner of the screen. Ideally, I should be able to see the button no matter what orientation I hold the phone. However, for now I can only see the button when the screen is upright/vertical, when I turn it sideways, the button is not visible.
What is the easiest way to solve this problem? Can I move the button manually when I rotate the screen ( this may be easier since the button is the only IB OUlet that is not showing up correctly, other elements are fine).
Or I thought of making two different views with two different nib files. ( But I am not sure how to do that?)
Please help. Thanks
in interface builder, you should be able to specify which corner the button should stick to, in the button’s properties.
that’s the easiest way. if you have a more complex interface then you’d need to either write code to move the button, or as you say, create a new view for the “other” orientation.