presentationControllerForPresentedViewController(…) is called multiple times
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