views:

31

answers:

1

UIViewController A , B.

A implements Horizontal screen , A turn to B. how do what? cancel Horizontal screen for B.

B code :

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

// Return YES for supported orientations
return NO;
}

Is not ok! Why?? Please help me ! thanks!

A: 

If B is on a tab bar with A this will not work. You need to present B modally or push it onto a nav controller - and you also need to return YES for at least one orientation in B.

Tab bar controllers only support the orientations that are supported by ALL of their views.

Alex Gosselin
[self.navigationController pushViewController:B animated:YES]; do this for A turn to B! so how to do?
raien
As far as I know that isn't possible.
Alex Gosselin