I am trying to figure out an error: fatal error: unexpectedly found nil while unwrapping an Optional value
class MainViewController: UIViewController {
var mapView :AGSMapView?
mapViewHelper = GeoneMapViewHepler.init(mapView: mapView!, mapViewDelegate: self)
}
class GeoneMapViewHepler: NSObject {
var mapViewModule :GeoneMapViewModel?
var mapView :AGSMapView?
var mapViewDelegate :AnyObject?
init(mapView mp: AGSMapView, mapViewDelegate md: AnyObject) {
mapView = mp
mapViewDelegate = md
super.init()
}
}
I spent half a day,but I don't find the key...
thanks for answers !