草庐IT

getDataInBackgroundWithBlock

全部标签

ios - 为什么 swift parse .getDataInBackgroundWithBlock 被阻止为明文 http 请求?

我正在编写一个使用托管在Heroku上的Parse的快速iOS应用程序。据我所知,所有数据传输都是通过HTTPS进行的,我没有对info.plist进行AppTransportSecurity解决方法(并打算保持这种方式)。到目前为止,所有Parse查询在模拟器和运行9.3.3或9.3.5的实际iphone上都已正确执行。直到现在我添加了这段代码,它在模拟器上完美运行,但由于通过HTTP发出的明文请求而在iphone上崩溃。但为什么要通过HTTP发出请求?overridefunctableView(tableView:UITableView,cellForRowAtIndexPathi

xcode - 无法使用类型为 'getDataInBackgroundWithBlock' 的参数列表调用 '((NSData!, NSError!) -> Void)'

我正在使用swift6.3并且有2个类似的错误无法使用类型为“(([AnyObject]!,NSError!)->Void)”的参数列表调用“findObjectsInBackgroundWithBlock”无法使用类型为“((NSData!,NSError!)->Void)”的参数列表调用“getDataInBackgroundWithBlock”有什么想法吗?importParseimportUIKitclassUserVC:UIViewController,UITableViewDataSource,UITableViewDelegate{@IBOutletvarresultTa

swift - 通过 getDataInBackgroundWithBlock 检索 PFFile 时出错

我创建了一个varuserImages=[PFFile]()并通过用户查询和self.userImages.append(user["imageFile"]作为!PFFile)。这很好用。但是,当我尝试通过设置用户图像时userImages.getDataInBackGroundWithBlock{(data,error)->Voidin...我收到以下错误:**“[(PFFile)]”没有名为“getDataInBackGroundWithBlock”的成员**为什么这行不通,什么可能是这个问题的解决方案?谢谢你的帮助!! 最佳答案