在过程中使用 @try { //do something } @catch(NSException *ex){ //do something } @finally{ //do something } //可以用 @throw //抛出异常