• 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: Releasing modal view controller properly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Releasing modal view controller properly


  • Subject: Re: Releasing modal view controller properly
  • From: Steve Mills <email@hidden>
  • Date: Sat, 17 Dec 2016 18:27:57 -0600

> On Dec 17, 2016, at 18:19, David Duncan <email@hidden> wrote:
>
>   MyViewController *vc = [[MyViewController alloc] init];

What if you store that in a property of an object that persists as long as the window does? I'm guessing it's being deallocated before you think because of that release.

Steve via iPad


_______________________________________________

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: 
 >Releasing modal view controller properly (From: Andreas Falkenhahn <email@hidden>)
 >Re: Releasing modal view controller properly (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Releasing modal view controller properly
  • Next by Date: device-pixel-exact bitmap rendering
  • Previous by thread: Re: Releasing modal view controller properly
  • Next by thread: Re: Releasing modal view controller properly
  • Index(es):
    • Date
    • Thread