简体   繁体   English

导航栏-为什么会出现边框?

[英]Navigation bar - why do I get borders?

I have searched but could not find a solution for this... I have a view controller in storyboard, and I want to add a navigation/toolbar bar under the status bar with a cancel button. 我已经搜索过,但找不到解决方案……我在情节提要中有一个视图控制器,我想在状态栏下添加一个带有取消按钮的导航/工具栏。 I can place a navigation bar using constraints, but I get unwanted borders around the navigation bar. 我可以使用约束放置导航栏,但是导航栏周围会出现不必要的边框。 How do I get rid of these? 我该如何摆脱这些?

在此处输入图片说明

原来,我已经为iOS 6自定义了UINavigationBar的外观,却忘记了禁用该代码。

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

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