OC高效率52不要使用retainCount

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController
/**
 *  ARC已经废弃次方法
 *  它所返回的保留计数只是某个给定时间点上的值
 */
//-(NSUInteger)retainCount;

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
相关文章
相关标签/搜索