Domanda

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??

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top