• 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: presentViewController completion block usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >presentViewController completion block usage (From: Koen van der Drift <email@hidden>)
 >Re: presentViewController completion block usage (From: Roland King <email@hidden>)
 >Re: presentViewController completion block usage (From: Koen van der Drift <email@hidden>)
 >Re: presentViewController completion block usage (From: Roland King <email@hidden>)
 >Re: presentViewController completion block usage (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Core Animation with NSWindow
  • Next by Date: Re: Core Animation with NSWindow
  • Previous by thread: Re: presentViewController completion block usage
  • Next by thread: Restoring unsaved docs does wrong thing
  • Index(es):
    • Date
    • Thread