背景: iOS 直播,横竖屏切换。
目前的做法是设置 status bar 的 orientation ,然后在横屏状态下,把 view transform 90 度。这样做效果看上去是没问题的,但是会出现一个问题,有的按钮会不能点击。可能是由于 UIScreen 的 bounds 也随着 status bar 旋转了,使得那些按钮落在了 screen bounds 的外面。求大神帮忙啊。
目前的做法是设置 status bar 的 orientation ,然后在横屏状态下,把 view transform 90 度。这样做效果看上去是没问题的,但是会出现一个问题,有的按钮会不能点击。可能是由于 UIScreen 的 bounds 也随着 status bar 旋转了,使得那些按钮落在了 screen bounds 的外面。求大神帮忙啊。
