开发者

How to fire rotation event of a UIViewcontroller view inside a UIScrollview

I have 1 UIViewController with a UIScrollView as view. For each page of this scro开发者_如何转开发llview I alloc 1 UIViewControllers and I add his view inside this Scrollview.

When I am going to rotate the device, rotation event in the sub viewcontrollers (that ones that have their views inside the scrollview) doesn't fire...

can anyone help me? thanks :)

Sergio


In your main ViewController method -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

Call

[yourSubViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜