Search code examples
xcode4

xcode storyboard controllers


i am creating an application on xcode 4.3 and i have realized that if i add any view controllers to my storyboard file, yes i can add buttons and segues, but i can only connect thiese objects with my initial view controller, the one I had at the start. all the others can not connect to the codes. And if i connect an object to the codes on my initial view controller, and then just move in on another, it won't work. How can i fix this problem???

linking to codes i mean IBOutlets...


Solution

  • I think the problem you're having is because you didn't specify what is the CLASS of your View Controller.

    To do this, select the View Controller (the one you can't "connect to code"), and in the column on the right, click on the Class drop-down menu and select the class where you have your code.

    Click on the drop down menu near Class

    Tell me if this arranges your problem !