Re: presentViewController completion block usage
Re: presentViewController completion block usage
- Subject: Re: presentViewController completion block usage
- From: Diederik Meijer | Ten Horses <email@hidden>
- Date: Tue, 16 Apr 2013 13:52:11 +0100
An additional thought: when you put references to the presentingVC's properties in the completion block you may get retain cycle warnings. This is caused by the fact that blocks keep strong references to objects. Passing data back to the referring VC could also be done in viewWillDisappear, couldn't it? That would secure it gets send over early.
Op Apr 12, 2013, om 3:09 PM heeft Koen van der Drift <email@hidden> het volgende geschreven:
>
> On Apr 12, 2013, at 10:00 AM, Roland King <email@hidden> wrote:
>
>> The completion block is really for your view controller to know when it is entirely finished presenting or entirely finished dismissing a view controller so that it can do some cleanup work, if it needs to. They often don't.
>
> Got it!
>
> Thanks,
>
> - Koen.
>
>
>
> _______________________________________________
>
> 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
>
_______________________________________________
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