#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // -fobjc-arc-exceptions 开启ARC下安全处理异常所用附加代码,不过会致使应用程序变大,并且会下降运行效率 // @try { // // } // @catch (NSException *exception) { // <#Handle an exception thrown in the @try block#> // } // @finally { // <#Code that gets executed whether or not an exception is thrown#> // } //发现大量异常捕获操做时,应考虑重构代码。 } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end