【发布时间】:2010-04-01 07:07:00
【问题描述】:
喂。
在我的 iphone 应用程序中,我不会在不旋转设备的情况下将我的标签栏方向更改为横向或纵向,这样当我按下旋转按钮时,整个标签栏控制器需要在横向或纵向模式下旋转。
谁能给我一个建议。
【问题讨论】:
标签: iphone controller orientation tabbar
喂。
在我的 iphone 应用程序中,我不会在不旋转设备的情况下将我的标签栏方向更改为横向或纵向,这样当我按下旋转按钮时,整个标签栏控制器需要在横向或纵向模式下旋转。
谁能给我一个建议。
【问题讨论】:
标签: iphone controller orientation tabbar
如果您不想更改方向,请尝试更改框架。
void convertPortraitToLandscap()
{
CGPoint temp;
temp = [touch locationInView:self];
touchPoint.x = temp.y;
touchPoint.y = 320 - temp.x;
}
上述代码将点从纵向转换为横向...类似地尝试更改视图的框架。
【讨论】: