holy_sin
V2EX  ›  问与答

万能的 V 友,请解救我于火海吧

  •  
  •   holy_sin · Jun 6, 2016 · 2863 views
    This topic created in 3639 days ago, the information mentioned may be changed or developed.
    背景: iOS 直播,横竖屏切换。
    目前的做法是设置 status bar 的 orientation ,然后在横屏状态下,把 view transform 90 度。这样做效果看上去是没问题的,但是会出现一个问题,有的按钮会不能点击。可能是由于 UIScreen 的 bounds 也随着 status bar 旋转了,使得那些按钮落在了 screen bounds 的外面。求大神帮忙啊。
    2 replies    2016-06-07 10:37:22 +08:00
    wohenyingyu01
        1
    wohenyingyu01  
       Jun 6, 2016 via iPhone
    在 storyboard 里面横屏和竖屏不是分别设置的两套 UI 么,一个 1x3 一个 3x1 ,如果用的是 xcode7 的话。
    holy_sin
        2
    holy_sin  
    OP
       Jun 7, 2016
    @wohenyingyu01 我就是在一个 controller 里面支持横竖屏转换,其他都不支持
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2991 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:46 · PVG 22:46 · LAX 07:46 · JFK 10:46
    ♥ Do have faith in what you're doing.