Can/should UIViewController work with multiple views?
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