简体   繁体   English

屏幕顶部的iPhone蓝色栏

[英]iPhone Blue Bar at top of screen

This is hands down the dumbest question I have ever had to ask but I have a blue bar appearing at the top of my view and I have no idea why or how to get rid of it. 这是我曾经要问过的最愚蠢的问题,但是我的视图顶部出现一个蓝色条,我不知道为什么或如何摆脱它。 The view is simply a UIView, not table or navigation its just a blank view but when I run the app in the simulator there is a blue bar across the top the size of a navigation or tool bar. 该视图只是一个UIView,而不是表或导航,它只是一个空白视图,但是当我在模拟器中运行该应用程序时,顶部会出现一个蓝色的栏,其大小相当于导航或工具栏的大小。 If you have any idea why this darn thing is there I would greatly appreciate it. 如果您知道为什么存在该死的东西,我将不胜感激。 在此处输入图片说明

试试这个里面的视图会出现方法:

self.navigationController.navigationBarHidden  = YES;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM