[英]PFQueryTableViewController getting possible error
I have a question regarding how one would intercept an error message on a PFQueryTableViewController
. 我有一个关于如何在PFQueryTableViewController
上拦截错误消息的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. 基本上,我想重写PFQueryTableViewController
的方法,以允许我在执行查询时出现问题时显示自定义错误警报。 Does anyone know how I would perform such behavior. 有谁知道我将如何执行这种行为。
On iOS, here's the method to override: 在iOS上,以下是重写方法:
- (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. 注意:如果覆盖它,则应使用[super objectsDidLoad:]。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.