开发者

How to determine the current view bounds in split view of Ipad App?

I have tried following code to determine current view bounds in shouldAutoRotate.. fn开发者_开发问答

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

bt actually when u rotate from one mode to another, it provides the bound values of old one insted the fresh bound values..? Any one know that how to achieve it?


Implement this in the -didRotateFromInterfaceOrientation: method.

-shouldAutorotateToInterfaceOrientation: should only be used to determine whether the target orientation is acceptable, and nothing else.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜