#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