iOS 7状态栏与UIImagePickerController上的摄像头控件重叠 [英] iOS 7 status bar overlaps camera controls on UIImagePickerController

查看:82
本文介绍了iOS 7状态栏与UIImagePickerController上的摄像头控件重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试将Info.plist'基于控制器查看状态栏外观'设置为NO,我试过调用

I've tried setting the Info.plist 'View controller-based status bar appearance' to NO, I've tried calling

[[UIApplication sharedApplication] setStatusBarHidden:YES];

我试过

-(BOOL)prefersStatusBarHidden{ 
  return YES;
}

我尝试用

[self presentViewController:picker animated:NO completion:^{
  [[UIApplication sharedApplication] setStatusBarHidden:YES];
}

然而,状态栏与相机控件重叠。它只存在于iOS 7中。

And still, there is a status bar overlapping the camera controls. It's only there in iOS 7 though.

状态栏不显示应用程序中的任何其他位置。我觉得我在这里错过了一个重要的难题,没有关于View Controller或UIImagePickerController的阅读量帮助我找到了这个拼图。

The status bar doesn't show up any where else in the app. I feel like I'm missing an important piece of the puzzle here, and no amount of reading about the View Controller or UIImagePickerController has helped me find said puzzle piece.

I我希望其他人对这个问题有一些了解。谢谢。

I'm hoping some one else has a little insight into this problem. Thank you.

编辑:我想要的效果是状态栏会显示应用程序中的每一个,除了相机选择器和其他一些外部(电子邮件相关)查看我们使用的控制器。

My desired effect is that the Status Bar shows up every in the app, except on the camera picker and a few other "outside" (Email related) view controllers we use.

推荐答案

我认为这个问题的答案是这是一个iOS 7的bug。在我们的案例中,这里的方法都没有帮助,现在有几个人试图解决这个问题。

I think the answer to this question is "This is an iOS 7 bug". None of the methods here helped in our case, and several people have tried to fix this now.

我不知道重现这个的步骤是什么,但我已经看到有足够多的人出现同样的问题,我认为可以说这实际上是iOS 7的错误。大多数人都可以使用上面列出的多种方法解决此问题。但很少,你无法解决这个问题。我希望如果你正在读这篇文章,你也不是那些人之一。

I can't say what steps to reproduce this, but I've seen enough people out there with the same issue, that I think it's safe to say that this is in fact an iOS 7 bug. Most people can fix this problem with the multiple methods listed above. Rarely though, you can't fix it that way. I hope if you are reading this, you are not also one of those people.

这篇关于iOS 7状态栏与UIImagePickerController上的摄像头控件重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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