• 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
presentationControllerForPresentedViewController(…) is called multiple times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

presentationControllerForPresentedViewController(…) is called multiple times


  • Subject: presentationControllerForPresentedViewController(…) is called multiple times
  • From: Rick Mann <email@hidden>
  • Date: Tue, 10 May 2016 16:02:29 -0700

Currently, my code instantiates a new UIPresentationController subclass each time presentationControllerForPresentedViewController(…) is called. Unfortunately, when I present a VC, presentationControllerForPresentedViewController(…) is called three times! This seems wasteful, at best, and possibly broken, since state is not tracked across calls.

I could try to keep a reference around for it, but then I'm holding on to a reference that won't be updated properly the next time. presentationControllerForPresentedViewController() passes in a couple of parameters required by UIPresentationController's constructor.

Is this a bug, or is this just how it is?


--
Rick Mann
email@hidden



_______________________________________________

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:
    • Re: presentationControllerForPresentedViewController(…) is called multiple times
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Receiver type for instance message is a forward declaration
  • Next by Date: Re: Receiver type for instance message is a forward declaration
  • Previous by thread: Xcode user defined settings from pre-action
  • Next by thread: Re: presentationControllerForPresentedViewController(…) is called multiple times
  • Index(es):
    • Date
    • Thread