iphone dev setting device orientation programatically error
<p>i am using this to set device orientation,</p>

<pre><code>[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
</code></pre>

<p>but it is throwing a warning "Implicit Conversion from enumeration type "UIInterfaceOrientation" to different enumeration type "UIPrintInfoOrientation" "., plus there is a problem which i assume is occurring due to that warning is that when i run the app, the simulater launches but remains black and app doesn't runs, and it says "Attaching to 'aap name'", and nothing happens, now i want to set device orientation for certain views plz. guide me, is there any way or work around to do it thanx and regards  Saad</p>
