Anthony Dito
Anthony Dito

Reputation: 3670

PFQueryTableViewController getting possible error

I have a question regarding how one would intercept an error message on a PFQueryTableViewController. Basically, I would like to override a method in the PFQueryTableViewController to allow for me to display custom error alerts if there were a problem executing the query. Does anyone know how I would perform such behavior.

Upvotes: 0

Views: 28

Answers (1)

liampronan
liampronan

Reputation: 588

On iOS, here's the method to override:

- (void)objectsDidLoad:(nullable NSError *)error;

In your implementation, you can check if there was an error and responded as you'd like.

Note: you should [super objectsDidLoad:] if you override it.

Source: Parse Docs

Upvotes: 1

Related Questions