How to set the autoresize property to change according to orientation in iPhone?
<p>I have an application created with a root class to be UIViewController class. I have placed one button on its view with frame size fixed in the view and have also set:</p>

<pre><code>    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
        return YES;
}
</code></pre>

<p>Now when i rotate the button remains in the same place except it is turned up.
If i set the autoresizing will the UIButton appears in the proper position.
If so how to set the autoresizing??</p>
