We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
下面这样 query 查到的是 AVObject,没有转换为AVFile,像下面这样强转会崩溃报错找不到对象。
AVQuery *query = [AVQuery queryWithClassName:@"_File"]; [query findObjectsInBackgroundWithBlock:^(NSArray objects, NSError error) { AVFile *file =[objects firstObject]; [file deleteWithCompletionHandler:^(BOOL succeeded, NSError * _Nullable error) { }]; }];
使用的时候还需像下面这样转换一下。
AVObject *obj =[objects firstObject]; AVFile *file = [AVFile fileWithAVObject:obj]; [file deleteWithCompletionHandler:^(BOOL succeeded, NSError * _Nullable error) { }];
不清楚 SDK 就是这样设计的,还是 SDK 的 Bug。 @zapcannon87
The text was updated successfully, but these errors were encountered:
应该算是 bug,但是事情有些麻烦,冒然改动的话可能会引起兼容性的问题;该问题的优先级不高,后续 SDK 内部讨论后再定夺吧。
Sorry, something went wrong.
No branches or pull requests
下面这样 query 查到的是 AVObject,没有转换为AVFile,像下面这样强转会崩溃报错找不到对象。
使用的时候还需像下面这样转换一下。
不清楚 SDK 就是这样设计的,还是 SDK 的 Bug。 @zapcannon87
The text was updated successfully, but these errors were encountered: