【问题标题】:without auto layout ,how to use handle a single iOS storyboard file for 3.5 inch screen and 4 inch screen in my iPhone application没有自动布局,如何在我的 iPhone 应用程序中使用处理 3.5 英寸屏幕和 4 英寸屏幕的单个 iOS 故事板文件
【发布时间】:2014-05-16 05:05:12
【问题描述】:

在我的 iphone 应用程序中,我想使用单个 iOS storyboardiOS 5 支持 iOS 3.5 英寸和 4 英寸屏幕。 Autolayout 来自 ios 6 以后。我不想为 iOS 3.5 英寸和 4 英寸屏幕创建单独的 storyboard

【问题讨论】:

    标签: ios ios5 ios7 storyboard


    【解决方案1】:

    您需要如图所示设置自动调整大小,然后您的按钮将出现在屏幕中间...

    【讨论】:

      【解决方案2】:
       if ([UIScreen mainScreen].bounds.size.height == 568)
       {
      
       }
       else
       {
      
        }
      

      【讨论】:

      • Rose,我在 UI 上使用 StoryBoard
      • 所以你可以使用自动布局
      【解决方案3】:

      对于 iPhone 3.5 英寸和 4 英寸的支持,我认为您必须尝试 Autosizing 它也会有所帮助。

      【讨论】:

      • harish mistry,如果我需要一个带有 Autosizing 的屏幕中间的按钮,我们可以处理吗?
      • 是的,你也可以处理,更多详情请查看我的第二个分析器
      猜你喜欢
      • 2014-03-30
      • 1970-01-01
      • 1970-01-01
      • 2017-12-13
      • 2014-04-10
      • 2015-08-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多