I have this code (Book1 is a UIViewController Class)
Book1 *book = [self.storyboard instantiateViewControllerWithIdentifier:@"Book1ID"];
[UIView transitionFromView:self.view toView:book.view duration:1 options:UIViewAnimationOptionTransitionCurlDown completion:nil];
The ViewController loads but it the orientation is wrong. It loads in Portrait view but I want it to load in Landscape.
I have the following code in Book1 already but once the view is loaded all autorotation seems to fail.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
return interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight;}
How can I load this view in Landscape?
I haven’t found the problem with my previous methods but I found another way to do it.
This is how:
Special thanks to Aalok Parikh for all your help