Core Location region monitoring

前端 未结 5 1407
你的背包
你的背包 2020-12-24 04:28

Does anyone know any knowledge of using this:

- (void) startMonitoringForRegion:(CLRegion *)region desiredAccuracy:(CLLocationAccuracy)accuracy

I

5条回答
  •  無奈伤痛
    2020-12-24 04:32

    I'd have to see where you setup your locationManager instance. But as @Mark Adams is trying to elude to, you need to set your current class as the delegate for locationManager so it knows which class to send messages back to. It is as simple as:

    locationManager.delegate = self;

提交回复
热议问题