EDIT: i'm sorry, i've copied "0 votes 0 answers 16 views", my mistake! Please, delete it!
Hi everyone!
first of all: i'm italian, so sorry for my bad english!
So... my app uses a navigation controller (created with IB): inside it there is a UIButton connected with an IBAction that does the push in another view.
This view (is called "abc") is created doing this: "File -> New File -> UIViewController Sub Class (with "With XIB for user interface" checked) anche with .m and .h files".
I'm doing the push with this code:
Code:
abc *myview = [[abc alloc] initWithNibName:@"abc" bundle:[NSBundle mainBundle]];
[self pushViewController:myview animated:YES];
of course, in "NavigationController_Class.h" (the class of my navigation controller) i've write this:
Now, i want to add the landscape support: in "NavigationController_Class.m" and in "abc.m" i've inserted this code:
Code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
(i want to support all InterfaceOrientation, so i return YES).
What's the problem?
It works, ok, but when you are seeing "abc" view and you touch the button for pop the view from the stack, the Navigation Controller scrolls not from the right to the left, but from up to down!
Do you know what's the problem?
Thanks!