Guest User

Untitled

a guest
Jun 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. - (void)dealloc {
  2. // Generic dealloc method for all subclasses
  3. for(RTProperty *property in [[self class] rt_properties]){
  4. if ([[property typeEncoding] hasPrefix:@"@"])
  5. [self setValue:nil forKey:[property ivarName]];
  6. }
  7. [super dealloc];
  8. }
Add Comment
Please, Sign In to add comment