• 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
Re: Why can't a modal view controller present another in viewDidLoad?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why can't a modal view controller present another in viewDidLoad?


  • Subject: Re: Why can't a modal view controller present another in viewDidLoad?
  • From: G S <email@hidden>
  • Date: Sun, 16 Jan 2011 13:47:06 -0800

On Sun, Jan 16, 2011 at 11:47 AM, Luke Hiesterman <email@hidden> wrote:
> viewDidLoad is called the first time the view property of the vc is accessed - that's when loading happens. There is no guarantee that the view is in a window at that time, and presenting a modal vc on a vc whose view is not in a window does not make sense. Perhaps viewDidAppear is what you were looking for. Where does the documentation say you can do this in viewDidLoad?

I should have clarified that; the doc says a modal view can invoke
another modal view, but the examples all have the user triggering it
with a button.  viewDidAppear sounds like a good candidate.  I'll give
it a try.

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

References: 
 >Why can't a modal view controller present another in viewDidLoad? (From: G S <email@hidden>)
 >Re: Why can't a modal view controller present another in viewDidLoad? (From: Luke Hiesterman <email@hidden>)

  • Prev by Date: Re: Why can't a modal view controller present another in viewDidLoad?
  • Next by Date: Re: Get iphoto scripting bridge handle without starting iphoto?
  • Previous by thread: Re: Why can't a modal view controller present another in viewDidLoad?
  • Next by thread: iOS: Question about split view
  • Index(es):
    • Date
    • Thread