Tag: settimeout

如何为RESTKIT对象pipe理器设置超时间隔

我正在使用RESTKIT对象pipe理器从我的服务器获取信息。 我的实现代码片段如下: -(void)getObjects { //Instantiate the RestKit Object Manager RKObjectManager *sharedManager = [RKObjectManager sharedManager]; //show the spinner [self showLoading]; //call server with the resourcepath [sharedManager loadObjectsAtResourcePath:self.resourcePath delegate:self]; } – (void)objectLoader:(RKObjectLoader*)objectLoader didLoadObjects:(NSArray*)objects { // handling in scenarios of empty arrays if ( [objects count]==0 ){ [self hideLoading]; if (emptyHandler){ emptyHandler(); }else{ [self standardEmptyHandling]; } return; } […]