문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top