how to rotate to current of Orientation?
<p>according to my code when my device are use in Landscape </p>

<p>when i pushViewController it will</p>

<p>automatic show in UIDeviceOrientationPortrait.</p>

<p>i need to rotate my device to Portrait and then rotate to Landscape, </p>

<p>then it will present in Landscape mode.</p>

<p>how can i rotate to current of Orientation with out use of private API(setOrientation)?</p>

<pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{
    return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIDeviceOrientationPortrait) ||
            (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
</code></pre>
