我有一个UIView根和一个UIView A作为其子视图iphone - 子视图旋转问题
我不允许root旋转,所以我的根类
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return NO;}
写,但我允许根的子视图(A)旋转,所以在上课,我写
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;}
但似乎根和其子视图不可旋转。
我该如何让A旋转但不是根?
感谢
对不起,我说的不清楚。是的,它在ViewController中。但是,您的意思是,如果父视图设置为非旋转,将其子视图设置为可以旋转并不容易? – Jack 2010-12-01 15:17:04