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-
in .m file
-(void)viewWillAppear:(BOOL)animated
{
[[UIDevice currentDevice]setOrientation:UIInterfaceOrientationLandscapeRight];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation = UIInterfaceOrientationLandscapeRight);
}