Swift2 中 PFObject 的 fetchAllIfNeededInBackground(带 block )的语法是什么。
objective-c 签名是:
+ (void)fetchAllIfNeededInBackground:(nullable NSArray<PFObject *> *)objects block:(nullable PFArrayResultBlock)block;
有人可以编写一个在 Swift 2 中编译的快速示例吗?
最佳答案
自动完成应该会为您填写,如果没有,您是否尝试过类似的操作
PFObject.fetchAllIfNeededInBackground(<objects>) { (results: [AnyObject]?, error: NSError?) -> Void in
}
关于ios - 用于解析 fetchAllIfNeededInBackground 的 Swift 2 语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35045167/