Swift 2 语法分析 fetchAllIfNeededInBackground

Swift 2 syntax for Parse fetchAllIfNeededInBackground

Swift2.

中 PFObject 的 fetchAllIfNeededInBackground(带块)的语法是什么

objective-c 签名是:

+ (void)fetchAllIfNeededInBackground:(nullable NSArray<PFObject *> *)objects block:(nullable PFArrayResultBlock)block;

Parse PFObject Documentation

有人可以写一个在 Swift 2 中编译的快速示例吗?

Auto-complete应该给你填了,如果没有,你有没有试过

PFObject.fetchAllIfNeededInBackground(<objects>) { (results: [AnyObject]?, error: NSError?) -> Void in

    }