【发布时间】:2013-04-17 17:52:22
【问题描述】:
我想知道我的UIViewControllers 视图在旋转更改后将具有的新宽度,但我需要此信息已经在
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
方法,所以我无法访问 frame 或 bounds 属性。
我尝试使用图层属性presentationLayer 和modelLayer,但没有找到正确的解决方案。
如果有人知道解决方案或可以提供一些思考,那就太好了。
【问题讨论】:
标签: ios uiview width uiinterfaceorientation