Hello all.

Well after reading the docs, and some examples form books, I came up and tried to build a "prototype" of what I want. So I needed to load a initial view with 2 buttons, one will lead me to InfoViewController and the other one to an AuthenticationViewController, each one has its related .xib, from the AppViewcontroller, I can have 2 instances of each viewController, and then if I put a button in the appController view I can swap the views, but the button will have to remain (in a toolbar, or something similar). What I want is to load InfoViewController's view when app loads, with will be at the viewDidload form the AppViewController, and InfroViewController's view should have its design, but also a button to go back to the Main view, which is the one in AppviewController's view. Also from the AuthenticationViewController's view

So I had that in mind, but when I came up to implemented I had a problem, the IBAction for those buttons I will place them in their respective view controllers (InfoViewController and AuthenticationviewController), but they know nothing about the AppViewController who is (was)the one in charge of swapping the views...

Should I ask for the AppViewController instance (view singleton patern) and send the aodl and new view to be placed? ( I did something like this , not to change views, but displaying things in a cocoa app), but I dunno if these same idea can be applied in a iPhone app, or is there a better workaround.


Thanks

Gustavo Pizano

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to