#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
转载于:https://my.oschina.net/u/2319073/blog/631409