我得到了一些我无法理解的警告 [英] I got warning which I couldn't understand
本文介绍了我得到了一些我无法理解的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我编译我的应用程序时,我收到了此警告,我无法理解。
When I compiled my app I got this warning and I couldn't understand it.
/Users/imac/Desktop/MyApp/RechercherView.xib:44:0 This bar button item's style is set to 'plain'. This configuration is not supported when in a navigation item.
推荐答案
普通
适用于标签栏上的条形按钮项目,这意味着根本没有边框,您只看到该项目。导航栏不支持此功能,它们必须为有边框
。如果你希望得到一个没有边框的项目的外观,你应该自己定制 UIButton
来放置那里
Plain
is for when a bar button item is on a tab bar, it means there is no border at all and you just see the item. This is not supported on a nav bar and they must be bordered
. If you wish to get the appearance of an item without a border, you should make your own custom UIButton
to put up there
这篇关于我得到了一些我无法理解的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文