XIB file does not load properly in Interface Builder

I created a new View-based application in Xcode, adding some outputs and actions, using the IBAction and IBOutlet tags, to the automatically created header file for the controller view. Then I double-clicked "project_name_ViewController.xib" to start the interface builder. However, the outputs and actions were not displayed in the interface builder. The only way to make them appear is to close the xib file and reopen it via the file → open command in Interface Builder.

I recently upgraded to Snow Leopard, before that I never had this problem.

Has anyone else come across this?

+3
source share
1 answer

Xcode is full of weird bugs. I always follow my 15 hour black magic ritual before doing an ad or graduation build. At any time when something similar to your problem occurs, I put it in the rolling bolts of flying monkeys somewhere in Xcode and restarted the program (sometimes the computer). This usually fixes this.

Of course, with exits and actions, it's easy to forget to keep the original heading before changing. Remember to save and build. Errors in the source can also prevent them from appearing in IB.

+7
source

Source: https://habr.com/ru/post/1721291/


All Articles