草庐IT

findObjectInBackgroundWithBlock

全部标签

swift - 如何修复错误 "Can' t 使用类型为 ((AnyObject!, NSError!) -> Void) 的参数列表调用 'findObjectInBackgroundWithBlock'

对于下面的代码,获取Can'tinvoke'findObjectInBackgroundWithBlock'withanargumentlistoftype((AnyObject!,NSError!)->Void)错误并且无法运行解析查询背景。有什么想法吗?vardata=Query.findObjectsInBackgroundWithBlock({(object:AnyObject!,error:NSError!)->Voidin}) 最佳答案 如果您使用的是swift1.2(Xcode6.3),您需要通过以下方式调用函数:va