I got warning which I couldn't understand

拥有回忆 提交于 2019-12-12 09:33:48

问题


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.

回答1:


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




回答2:


  1. go to the navigation item
  2. select the navigation Bar button
  3. just change the bar button item in attribute inspector
  4. style from plain to rounded or done


来源:https://stackoverflow.com/questions/5612187/i-got-warning-which-i-couldnt-understand

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!