2010-06-09 63 views
0

我曾尝试下面的代码,以确定在当前shouldAutoRotate视图边界.. FN如何确定Ipad App分割视图中的当前视图边界?

UIViewController *temp1 = [appDelegate.splitViewController.viewControllers objectAtIndex:1]; 
float screenwidth = temp1.view.bounds.size.width; 
float screenheight = temp1.view.bounds.size.height; 

BT实际上当u从一个模式旋转到另一个,它提供了一个老的结合值insted的新鲜界限值.. ? 任何人都知道如何实现它?

回答

1

-didRotateFromInterfaceOrientation: method中执行此操作。

-shouldAutorotateToInterfaceOrientation:应该只用于确定目标方向是否可以接受,而不是别的。

+0

感谢肯尼... -didRotateFromInterfaceOrientation:方法使我正确的答案... – Mahesh 2010-06-10 06:19:51

+0

@Mahesh - 如果他回答你的问题,你应该纪念的小复选框,这个答案的左边,以接受它。 – 2010-08-27 17:31:10