iphone - 状态栏问题
<p><p>从我的图片中可以看出,状态栏显示在我的表格 View 顶部,我不明白我做错了什么导致这种情况发生。我相信这将是一个简单的修复,我只是想念它。</p>
<p>任何帮助将不胜感激,谢谢!</p>
<p> <img src="/image/o79Mn.png" alt="In App View"/> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您可以通过在 ViewDidLoad 方法中编写以下代码来避免此问题...</p>
<pre><code>float SystemVersion=[[ systemVersion] floatValue];
if(SystemVersion<7.0f)
{
//Currently your app is running in IOS6 or older version. So you need not to do anything.
}
else
{
// Currently your app is running in IOS7. Do the following.
CGRect TempRect;
for(UIView *sub in [ subviews])
{
TempRect=;
TempRect.origin.y+=20.0f; //Height of status bar
;
}
}
</code></pre>
<p>让我知道它是否有效!</p>
<p>编码愉快!!!!</p></p>
<p style="font-size: 20px;">关于iphone - 状态栏问题,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/19158325/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/19158325/
</a>
</p>
页:
[1]