• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can/should UIViewController work with multiple views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can/should UIViewController work with multiple views?


  • Subject: Can/should UIViewController work with multiple views?
  • From: Aleksandar Vacić <email@hidden>
  • Date: Thu, 26 Jun 2008 12:44:25 +0200


I'm new to Cocoa and try to learn what are the good ways of developing. One thing I'm doubtful is this...


In the iPhone Simulator, when you load Photos app, it's initially empty and displays an image + helpful message. In the app I'm buiding I want to do the same thing - if there is nothing to show, display such view, otherwise show TableView with existing data.

I have UINavigationController which loads UIViewController which by default loads the table view.

	Q is: Where to add the loading of that no-data-yet view?

At first, I created new ViewController and .xib file with my view and on applicationDidFinishLaunching I simply push it to the navigation controller. However, this automatically adds the backButton to the root view controller. I don't want that - I need the root view controller to show either TableView or my simple UIView, depending on conditional check?
If UIViewController can handle multiple views, can I then add my view into RootViewController NIB file and then switch views somewhere in the code? If yes, *where* would I do that switch?
If no, is the path to follow this: do the push, then programmatically remove the Back button?


The navigation controller will have + button at the top, and once new data is added, it will return to rootviewcontroller that will load the table view.

Thanks
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • [MODERATOR] Re: Can/should UIViewController work with multiple views?
      • From: Scott Anguish <email@hidden>
    • Re: Can/should UIViewController work with multiple views?
      • From: "Hamish Allan" <email@hidden>
  • Prev by Date: Re: NSWindow setIgnoresMouseEvents and Spaces
  • Next by Date: creating 2D graphs
  • Previous by thread: Re: NSWindow setIgnoresMouseEvents and Spaces
  • Next by thread: Re: Can/should UIViewController work with multiple views?
  • Index(es):
    • Date
    • Thread