问题
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:
- go to the navigation item
- select the navigation Bar button
- just change the bar button item in attribute inspector
- style from plain to rounded or done
来源:https://stackoverflow.com/questions/5612187/i-got-warning-which-i-couldnt-understand