Oh! Apple

My experience of using iPod Touch, iPod Classics, Mac OSX, Coding in XCode, or anything generally related to Apple

Tuesday, February 02, 2010

Ah, so I missed the view controller reference!

After not touching XCode for a while, I picked it up again, and hit a wall for a short while.

The problem was that I got the code all wired up properly, but when I run the application, I didn't see the UI coming up. I was frustrated for a while, look at some samples at sites and still didn't get the answer.

And then I realized that the "view" outlets didn't show up when I right clicked on the View in Interface Builder. That's odd I thought, cause I was supposed to link the view to the "File's Owner" which is suppose to be View Controller. That's when I realized that the File's Owner wasn't definited yet. It's still in type "NSObject"! So I set the class to the proper View Controller, and link up the view outlet, and boom the view shows up in the simulator.

Guess this is a common mistake I make.

Next stop, link up the button actions.

0 Comments:

Post a Comment

<< Home