0

in iOS5 with Xcode5 my application support only Landscape orientation when i add child view controller its on portrait and not rotate to landscape mode??

asmad
  • 387
  • 4
  • 13
  • Add Child view controller in this pattern: UIViewController *controller = [[UIViewController alloc]init]; [self addChildViewController:controller]; controller.view.frame = self.view.frame; [self.view addSubview:controller.view]; [controller didMoveToParentViewController:self]; its follow the same orientation of parent view controller – asmad Jan 17 '14 at 12:21

1 Answers1

0

Add Child view controller in this pattern:

UIViewController *controller = [[UIViewController alloc]init];
[self addChildViewController:controller];
controller.view.frame = self.view.frame;
[self.view addSubview:controller.view];
[controller didMoveToParentViewController:self];

its follow the same orientation of parent view controller

asmad
  • 387
  • 4
  • 13