Utility template - no controls on flipside

Discussion in 'iOS Programming' started by Nraygun, Jan 19, 2009.

  1. macrumors newbie

    May 9, 2005
    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.
  2. Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    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.
  3. thread starter macrumors newbie

    May 9, 2005
    NavBar overlap! Problem solved

    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!!!
  4. thread starter macrumors newbie

    May 9, 2005
    Passing values from flipside to mainview

    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?
  5. thread starter macrumors newbie

    May 9, 2005
    Moved to a new thread

    I moved this new question out to a new thread.

Share This Page