Rotate the Simulator at launch Time
<p>i m working on a project in which i want to rotate the ipad at the launch time.i have done coded for it.But it still not working. code i have written-</p>

<p>in .m file</p>

<pre><code>-(void)viewWillAppear:(BOOL)animated
{

[[UIDevice currentDevice]setOrientation:UIInterfaceOrientationLandscapeRight];
}


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