相关疑难解决方法(0)

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

我正在使用swift 6.3并且有两个类似的错误

  1. Cannot invoke 'findObjectsInBackgroundWithBlock' with an argument list of type '(([AnyObject]!, NSError!) -> Void)'

  2. Cannot invoke 'getDataInBackgroundWithBlock' with an argument list of type '((NSData!, NSError!) -> Void)'

有什么想法吗?

import Parse
import UIKit

class UserVC: UIViewController, UITableViewDataSource, UITableViewDelegate {
    @IBOutlet var resultTable: UITableView!
    var resultNameArray = [String]()
    var resultUserNameArray = [String]()
    var resultUserImageFiles = [PFFile]()

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }

    override func viewDidAppear(animated: Bool) {
        resultNameArray.removeAll(keepCapacity: false)
        resultUserNameArray.removeAll(keepCapacity: false)
        resultUserImageFiles.removeAll(keepCapacity: false)

        var query …
Run Code Online (Sandbox Code Playgroud)

xcode parse-platform swift

4
推荐指数
1
解决办法
3010
查看次数

标签 统计

parse-platform ×1

swift ×1

xcode ×1