English 中文(简体)
ResKit: Requeue RKRequest Queue
原标题:RestKit: requeue RKRequest in RKRequestQueue

我试图在我的申请中执行一个上载点。 缩略语 但正如我们大家所知,网络连接并非永远存在。 现在,用<条码>韩国可检索观察员确定何时暂停和恢复我的轮值,并且正在做罚款(至少现在,我听到关于某些在休息区可接触性法典的问题)。 这使我停止发送新的数据,直到再次提供网络。 但在失去网络联系时,所有活跃的<代码>RKRequests 正在签发-(撤销)request:RKRequest * request doFail deLoadWithError:NSError * 我认为,在什么地方,我将能够把我的<代码>RKRequest再次放在格内。

因此,我试图这样做:

- (void)request:(RKRequest *)request didFailLoadWithError:(NSError *)error
{
    NSLog(@"Request failed");
    [[request queue] cancelRequest:request];
    [[request queue] addRequest:request];
}

但Im 带上EXC_BAD_ACCESS,有些地方用<代码>didFail LoadWithError方法RKRequest

我的问题是:我如何能够重新排列<条码>。

最佳回答

不是取消和增加问题,而是:

[request send];

但这的最佳解决办法实际上是利用审查委员会,使事情更加容易。 你们不必担心问题。 客户与韩国调查局见面并见面,在幕后 all尽一切,特别是向客户提出询问,并寄送他们。

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签