开发者

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

开发者 https://www.devze.com 2023-01-03 01:22 出处:网络
I have tried following code to determine current view bounds in shouldAutoRotate.. fn开发者_开发问答

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

精彩评论

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