【问题标题】:How to handle alignment of UI on phone call?如何在电话中处理 UI 对齐?
【发布时间】:2013-02-18 11:05:45
【问题描述】:

我正在为 iOS 5 或更高版本开发 iPhone 应用程序,并利用故事板进行 UI 设计。我的问题是当我打电话时,我的 UI 会错位,因为我的上部状态栏占用了 20 到 30 像素的屏幕空间。

当我打电话时如何处理我的用户界面?

【问题讨论】:

    标签: iphone ios5 user-interface storyboard alignment


    【解决方案1】:

    我的问题终于得到了答案。以下是我在项目中所做的更改,一切开始正常。

    1. 为我的 UI 中需要的所有东西拍摄了切片图像。 (原来 我正在拍摄普通图像以节省切片时间)
    2. 让您拥有 autoResizingMask 属性。它帮助我节省了很多时间。只需确保只有顶部、左侧和右侧 3 个箭头处于 ON 状态,您的工作就结束了。

    为了方便大家搜索,我将添加以下 Stackoverflow 链接以节省您的时间

    1. How to position view below green bar during phone call?

    2. Resize for in-call status bar?

    3. How do I detect a double-height status bar?

    4. How to Remove Status Bar in "View Based Application" - iOS

    5. how to hide status bar in Iphone application

    6. How In-Call status bar impacts UIViewController's view size ? (and how to handle it properly)

    7. iPhone Programming In Call Status Bar

    8. resize content after iPhone status bar is shown/hidden

    9. How to programmatically get iOS status bar height

    10. How is the in-call status bar impacting my CGAffineTransform'd view?

    11. View resize when In-Call Status Bar changes

    感谢所有回答上述所有问题的人。它解决了我的大问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多