I'm creating Tabbar application which is having 4 tabs, my FirstTabView should support to all orientation and all 3 tabViews should support only for portrait, when i change tab to SecondTabView it should forcibly change orientation to portrait is this possible in storyboard I used below code for FirstTabView.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return(interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
and in SecondTabView.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return(interfaceOrientation == UIInterfaceOrientationPortrait);
}
Its not allowing any tab view to support to landscape thanks in advance.