How to make my view rotatable with the device orientation?
<p>i am working on the Remote Desktop protocol in this i facing a lot of Problem. 
You guys are really good and help me in many critical situation .</p>

<p>My problem Goes like this:-</p>

<p>If i click on any button to connect to RDP after that if i wants to rotate the Device it is not happing </p>

<p>i made shouldAutorotateToInterfaceOrientation Yes ,still the same </p>

<pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

    return YES;
}
</code></pre>
