首页 > swift代码错误cannot convert value of type '([AnyObject]!,NSError!)

swift代码错误cannot convert value of type '([AnyObject]!,NSError!)

求大神教我怎么改这个问题,感激不尽。


你的闭包数据类型错了

    let geocoder = CLGeocoder()
//这里 marks: [CLPlacemark]? ,error: NSError?
    geocoder.reverseGeocodeLocation(location, completionHandler: { (marks, error) -> Void in
        //地理位置信息数据处理
    })
【热门文章】
【热门文章】