• 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
Little "mind explanation" for changing views in iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Little "mind explanation" for changing views in iPhone


  • Subject: Little "mind explanation" for changing views in iPhone
  • From: Gustavo Pizano <email@hidden>
  • Date: Wed, 29 Jul 2009 22:50:23 +0200

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@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


  • Prev by Date: Re: Cahnging bgColor of a UIView not working.
  • Next by Date: Re: something I can't understand
  • Previous by thread: Re: Drag&Drop to desktop - file icons layout problem
  • Next by thread: NSPersistentDocument Save As failure
  • Index(es):
    • Date
    • Thread