Restkit を使用して、失敗したリクエストを再試行したい。次のように、デリゲート メソッドからこれを実行しようとしています。
-(void)request:(RKRequest *)request didFailLoadWithError:(NSError *)error{
NSLog(error.domain);
NSLog([NSString stringWithFormat:@"%d",error.code]);
NSLog(error.localizedDescription);
NSLog(error.localizedFailureReason);
[request cancel];
[request reset];
[request send];
}
ただし、次のエラーが表示されます。
2013-01-14 11:19:29.423 Mobile_ACPL[7893:907] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to add the same request multiple times'
どうすればこれを実現できますか?