PDA

View Full Version : Utility template - no controls on flipside




Nraygun
Jan 19, 2009, 07:06 AM
I created an app using the Utility template in Xcode.

I can add controls to the main view by editing the NIB and they show up. If I add anything to the flipside view, they do not.

I just fire up Xcode, choose new project, choose the Utility template, call it Test, add a label to the FlipsideView.xib using IB, save it then run. This results in a blank flipside view.
I can add controls/labels to the main view with no problem - just the flipside seems to give me problems. I discovered this after I had built my mainview app and now I want to use the flipside to configure parameters.

Is there something I need to do to make the controls(even a simple label) appear in the flipside view?

Using Xcode 3.1.2 on an iMac G5.



dejo
Jan 19, 2009, 11:39 AM
I just fire up Xcode, choose new project, choose the Utility template, call it Test, add a label to the FlipsideView.xib using IB, save it then run. This results in a blank flipside view.
I just tried this and it worked fine for me. Just be careful where you add your label since the NavBar may overlap it. That is, if you added the label very near the top of the view, the navigation bar may be covering it up.

Nraygun
Jan 19, 2009, 05:38 PM
...the NavBar may overlap it. That is, if you added the label very near the top of the view, the navigation bar may be covering it up.

Well, I'll be...that's what it was!

I didn't even think that the controls I was placing were too far up since the NavBar doesn't really show up.

Lessoned learned...thanks!!!

Nraygun
Jan 19, 2009, 11:07 PM
OK, I got another one.

I'm trying to setup controls on the flipside that control the app on the mainview.

I figured out that I needed to create more instance variables in the FlipsideViewController and I think I need a variable for the control and another to store the value(instead of using that control value directly per the Design pattern recommendation). I think this will adhere to the Model-View-Controller pattern.

How do I access these variables in this MainView?

I've tried flipsideViewController.var with no luck. I've imported FlipsideViewController.h in MainViewController.

Any ideas?

Nraygun
Jan 20, 2009, 06:36 AM
I moved this new question out to a new thread.