【问题标题】:Changing the orientation of tabbar controller Forcefully强制更改标签栏控制器的方向
【发布时间】:2010-04-01 07:07:00
【问题描述】:

喂。

在我的 iphone 应用程序中,我不会在不旋转设备的情况下将我的标签栏方向更改为横向或纵向,这样当我按下旋转按钮时,整个标签栏控制器需要在横向或纵向模式下旋转。

谁能给我一个建议。

【问题讨论】:

    标签: iphone controller orientation tabbar


    【解决方案1】:

    如果您不想更改方向,请尝试更改框架。

    void convertPortraitToLandscap()
    {
      CGPoint temp;
      temp = [touch locationInView:self];
      touchPoint.x = temp.y;
      touchPoint.y = 320 - temp.x;
    }
    

    上述代码将点从纵向转换为横向...类似地尝试更改视图的框架。

    【讨论】:

      猜你喜欢
      • 2020-07-29
      • 1970-01-01
      • 1970-01-01
      • 2013-09-28
      • 1970-01-01
      • 2014-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多