“Plain Style unsupported in a Navigation Item” warning with my customized Bar Button Item

前端 未结 8 811
醉话见心
醉话见心 2020-12-24 11:39

I drag a Round Rect Button to the position of the right Bar Button Item, and set an image to the Round Rect Button. All works well, except the warning \"Plain Style unsuppor

相关标签:
8条回答
  • 2020-12-24 12:05

    After you are sure that you have all your bar buttons in the storyboard set to anything but plain, make sure you do a git commit and delete derived data. I spent forever trying to figure out why the problem wasn't fixing itself, and deleting the derived data folder fixed it for me.

    0 讨论(0)
  • 2020-12-24 12:11

    I stopped the warning about Plain Style by poking around in the Document Outline. That was showing my Navigation Item, and within that 2 Bar Button Items, and within each of those a Button. The offending setting was on the Bar Button Item. In its attributes inspector I changed Style from Plain to Done, and the warning went away. Note: I am using XCode 5.

    0 讨论(0)
提交回复
热议问题