How do I add Main Menu to xib

后端 未结 1 2017
一个人的身影
一个人的身影 2021-02-15 11:18

I deleted main menu from my xib file. How can I recreate it without coping it from another freshly created xib?

I can\'t seem find how to tell IB that menu that I add f

相关标签:
1条回答
  • 2021-02-15 12:05

    You can't. You used to be able to simply connect the mainMenu outlet to your menu, but as of Xcode 4, there is no mainMenu outlet and there is no replacement way to create a Main Menu in an existing nib.

    You must create a new MainMenu nib using the New File command and either copy the Main Menu object from that nib or just replace the old nib with the new.

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