Guest User

Untitled

a guest
Aug 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Objective C: Class containing single NSInteger need releasing ?
  2. @interface myTag
  3. @property (nonatomic) NSInteger tag;
  4. @property (nonatomic) NSInteger index;
  5. @end
  6.  
  7. mytag = [[myTag alloc] init];
  8. int num = (int)mytag.tag;
  9. [mytag release];
  10. NSLog(@"num = %d",num);
Add Comment
Please, Sign In to add comment