#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //Retain 遞增保留計數 //release 遞減保留計數 //autorelease 待稍後清理「自動釋放池」時,再遞減保留計數 //自動釋放池 能延長對象生命週期,在下一次事件循環時釋放 //保留環 經過弱引用 或者從外界命令循環中某個對象再也不保留另一個對象 } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end