草庐IT

LocationManagerDelegate

全部标签

ios - 在快速的委托(delegate)数组中查找委托(delegate)

我想在删除之前检查我的removeDelegate方法中是否已经有一个委托(delegate)。我怎么做?这是我到目前为止所得到的:protocolLocationManagerDelegate{funclocationManagerDidUpdateLocation(oldLocation:CLLocationCoordinate2D,currentLocation:CLLocationCoordinate2D)}classLocationManager:NSObject{privatevar_delegates=[LocationManagerDelegate]()funcremo