search

Home  >  Q&A  >  body text

objective-c - [UIScreen mainScreen].bounds horizontal and vertical screens

I would like to ask, what does [UIScreen mainScreen].bounds have to do with? Why do I get the horizontal screen size when the screen is in portrait orientation? Normally the portrait screen is the vertical screen size. This is because I loaded a webview , there is a video above. When you click on the video, the screen is forced to be horizontal. Press the home button in the horizontal screen state, then screen vertically. Open the app again, and then [UIScreen The size of mainScreen].bounds becomes horizontal, but my phone is currently in portrait mode, as shown in the picture above. What does [UIScreen mainScreen].bounds have to do with? Why is this happening to me?

仅有的幸福仅有的幸福2875 days ago749

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-05-02 09:30:47

    In the Zhanqi app, there was a problem of confusing directions from the beginning

    reply
    0
  • 黄舟

    黄舟2017-05-02 09:30:47

    Is it solved? I also encountered this problem

    reply
    0
  • Cancelreply