내가 생각 해낸 가장 좋은 대답은 MKNetworkOperation을 하위 클래스, 그리고 다음 operationSucceeded 및 operationFailedWithError를 오버라이드 (override) 할 수 있습니다. 이러한 루틴은 고정 된 작업이 완료 될 때까지 계속 호출됩니다.
/*!
* @abstract Overridable custom method where you can add your custom business logic error handling
*
* @discussion
* This optional method can be overridden to do custom error handling. Be sure to call [super operationSucceeded] at the last.
* For example, a valid HTTP response (200) like "Item not found in database" might have a custom business error code
* You can override this method and called [super failWithError:customError]; to notify that HTTP call was successful but the method
* ended as a failed call
*
*/
-(void) operationSucceeded;
/*!
* @abstract Overridable custom method where you can add your custom business logic error handling
*
* @discussion
* This optional method can be overridden to do custom error handling. Be sure to call [super operationSucceeded] at the last.
* For example, a invalid HTTP response (401) like "Unauthorized" might be a valid case in your app.
* You can override this method and called [super operationSucceeded]; to notify that HTTP call failed but the method
* ended as a success call. For example, Facebook login failed, but to your business implementation, it's not a problem as you
* are going to try alternative login mechanisms.
*
*/
-(void) operationFailedWithError:(NSError*) error;
다음 MKNetworkOperation.h 헤더 파일에서