XIB File opens like an XML in XCode but opens correctly with Interface Builder

前端 未结 7 644
说谎
说谎 2021-02-05 01:35

When I double-click my file StartWindow.xib in Xcode 4, it does not open into the integrated Interface Builder; it opens like a XML file. I can open all other xib files and they

相关标签:
7条回答
  • 2021-02-05 02:14

    Had this happen to me awhile ago. I had to go to File -> Close myfilename.xib and then reopen it before it would honor the file type. I think the shortcut is Ctrl + Cmd + W if you are looking at the file.

    0 讨论(0)
  • 2021-02-05 02:15

    Go to the File Inspector after selecting the nib file. Under Identity and Type, select the drop down list for File Type and choose the topmost element Default - com.apple....

    0 讨论(0)
  • 2021-02-05 02:15

    In File Inspector right click on your xib and select Open As -> Interface Builder

    0 讨论(0)
  • 2021-02-05 02:15

    I had the same problem recently, make sure you have selected the appropriate Editor view in the upper right hand corner, which would either be the Standard Editor or Assistant Editor. The Version Editor option will make the .xib file appear in its .xml form.

    0 讨论(0)
  • 2021-02-05 02:24

    I had this problem when I had the "Blame" view toggled on!

    0 讨论(0)
  • 2021-02-05 02:34

    For me in Localization section nothing has added.

    I had added a new localization English.

    Now XIB is shown properly.

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