Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 14th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. release an object, memory management, Objective C
  2. 1.ClassA *obj = [[ClassA alloc] init];
  3.     // initialize the arr
  4.     // add another object into the arr
  5.     2. [obj.arr addObject:nameOfAnObject]
  6.     3. return obj;
  7.        
  8. 1.[super viewDidLoad];
  9.   2.ClassA     *classAinB = [[classA alloc] init];                                                                        
  10.   3.classAinB = [classA function];
  11.   4.[classAinB release];