2015-04-24 3 views
1

От CLLocationManager.h:Есть ли хороший способ узнать, когда CLMocationManager's startMonitoringForRegion завершен?

/* 
* startMonitoringForRegion: 
* 
* Discussion: 
*  Start monitoring the specified region. 
* 
*  If a region of the same type with the same identifier is already being monitored for this application, 
*  it will be removed from monitoring. For circular regions, the region monitoring service will prioritize 
*  regions by their size, favoring smaller regions over larger regions. 
* 
*  This is done asynchronously and may not be immediately reflected in monitoredRegions. 
*/ 
- (void)startMonitoringForRegion:(CLRegion *)region __OSX_AVAILABLE_STARTING(__MAC_TBD,__IPHONE_5_0); 

Есть хороший способ узнать, когда это асинхронный вызов завершен? Я пытаюсь выполнить другое действие, как только я узнаю, что мониторинг региона запущен для определенного региона, но похоже, что он может занимать от> 1s до> 20s.

+0

Что вы подразумеваете под асинхронным вызовом. Он не завершен; он контролирует. – Mika

ответ

2

, конечно, да. в CLLocationManagerDelegate вы найдете - locationManager:didStartMonitoringForRegion:. here вы найдете полное описание делегата.

+1

Это именно то, чего я не смог найти - спасибо! – bplattenburg

Смежные вопросы