Dealloc with delegate


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. - (void)dealloc {
  2. if (otherObject.delegate == self) {
  3. otherObject.delegate = nil;
  4. }
  5. [otherObject release];
  6. [super dealloc];
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.