-1

I developed app(navigation + tabbar) in portrait mode.

But now I want that if user change its orientation to landscape or portrait then all should be rotate in that orientation.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Dilip
  • 1

2 Answers2

1

You need to set each view's control autoresizingmask. You can do it through xib as well as code as per your need and add below method in all viewControllers and it should work.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Overriden to allow any orientation.
    return YES;
}

Hope this help.

Deeps
  • 4,399
  • 1
  • 26
  • 27
0

And have a look into your ".plist", you can define "Supported interface orientations" (UISupportedInterfaceOrientations) here.

Manni
  • 11,108
  • 15
  • 49
  • 67