ios - Swift 2 syntax for Parse fetchAllIfNeededInBackground -
what syntax pfobject's fetchallifneededinbackground (with block) in swift2.
the objective-c signature is:
+ (void)fetchallifneededinbackground:(nullable nsarray<pfobject *> *)objects block:(nullable pfarrayresultblock)block;
can write quick example compiles in swift 2?
auto-complete should fill you, if not, have tried like
pfobject.fetchallifneededinbackground(<objects>) { (results: [anyobject]?, error: nserror?) -> void in }
Comments
Post a Comment