objective-c - [UIScreen mainScreen].bounds横竖屏
仅有的幸福
仅有的幸福 2017-05-02 09:28:47
0
2
642

想问一下,[UIScreen mainScreen].bounds和什么有关?为什么我竖屏的时候得到的是横屏的尺寸,正常情况下竖屏就是竖屏的尺寸,这个是由于我加载了一个 webview,上面有一个视频,点击视频时强制横屏了,在横屏状态下按 home 键,然后竖屏,再次打开app,然后[UIScreen mainScreen].bounds的尺寸就变成横屏的了,但是当前我的手机是处于竖屏状态啊,如上图,跪求一下[UIScreen mainScreen].bounds和什么有关?为什么会出现我这种情况?

仅有的幸福
仅有的幸福

reply all(2)
習慣沉默

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

黄舟

Is it solved? I also encountered this problem

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!