Re: presentationControllerForPresentedViewController(…) is called multiple times
Re: presentationControllerForPresentedViewController(…) is called multiple times
- Subject: Re: presentationControllerForPresentedViewController(…) is called multiple times
- From: Kyle Sluder <email@hidden>
- Date: Wed, 11 May 2016 10:29:57 -0500
On Tue, May 10, 2016, at 06:02 PM, Rick Mann wrote:
> 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?
Regardless of whether this is expected, I agree it’s inefficient. Please
file a bug report at https://bugreport.apple.com.
--Kyle Sluder
>
>
> --
> 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