I have a Xcode project with .xib file. When I try to open them Xcode shows the plain text of these file, it does not show the Interface Builder Interface.
How can I make Xcode to show me what I want?
I have already cleaned the project and restarted my computer. Didn't help.
Please help me this.
If you're trying to resolve any connection issues and have noticed that you need to edit a XIB file but have selected the Use Storyboards option when creating your project, simply right-click the Main. storyboard > click Open As > then click Source Code . This way you don't have to recreate the project from scratch.
What are XIB files? From the point of view of the UI designer, XIB files contain the views or windows that you design in Interface Builder – the controls, their layout and properties, and their connections to your code. It is important to understand that on a technical level, XIB files are stored object graphs.
Application interface created with Interface Builder, a graphical editor for designing and testing user interfaces; saved in a text-based flat-file format, introduced in Interface Builder 3.0. NOTE: XIB files are also called "development-time format" files.
The problem is that you have the version editor selected:
Xcode 6: … Xcode 9:
The version editor can only display source code. It can't display a xib graphically. You need to switch to the standard editor. Here are three ways to switch to the standard editor:
Press Command-Return.
Go to the menu bar and choose View > Standard Editor > Show Standard Editor.
Click the leftmost button in the “Editor” segmented control in the toolbar:
Xcode 6: … Xcode 9:
On the .xib file in the list of files, you can right-click and select Open As... and choose Source Code or Interface Builder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With