The Telerik Platform product is retired.Learn more

Asynchronous Execution of Operations

Asynchronous Execution of Operations

You can execute Backend Services iOS SDK operations asynchronously using either a block or target and selector.

You will notice that each method is available in two flavors:

​1. With block:

[dataStore fetchAll:[Books class] block:^(NSArray *result, NSError *error) {

​2. With target and selector:

EVDataStore *dataStore = [EVDataStore sharedInstance];
[dataStore fetchAll:[Books class] target:self selector:@selector(requestCompletedWithResult:error:)];

The selector to call should have the following signature:

- (void)requestCompletedWithResult:(id)result error:(NSError*)error

The error will be nil on success.

Contact us: +1-888-365-2779
Copyright © 2016-2018, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.