播放Youtube视频后,状态栏高度会发生变化 [英] Status bar height changes after playing a Youtube video

查看:200
本文介绍了播放Youtube视频后,状态栏高度会发生变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个Web视图,可以在youtube中加载视频列表。选择并播放任何此视频后,Web视图向上移动20像素。我在播放视频之前和之后打印了状态栏的值,高度从20变为0,这仍然存在于所有应用程序中。这只发生在iOS 6上,在iOS 5中测试并且看起来不错

I have this Web view that loads a list of videos in youtube. After I select and play any of this videos, the Web view is shifted 20 pixels up. I've printed values of status bar before and after playing the video and the height changes from 20 to 0, and this remains across all the app. This only happens with iOS 6, tested in iOS 5 and looks ok

推荐答案

解决了这个问题,非常类似于此模态解雇不考虑状态栏(新iOS 6问题?)。我正在使用未返回正确支持的接口方向的VC。更改后,Web视图始终位于正确的位置。

Solved the problem, is very similar to this Modal dismissals do not account for status bar (new iOS 6 issue?) . I'm using a VC that is not returning the correct supported interface orientations. After changing this, the Web view is always in the right place.

这篇关于播放Youtube视频后,状态栏高度会发生变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆