1
從CLLocationManager.h:有沒有什麼好的方法來知道CLLocationManager的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的任何地方。
你是什麼意思的異步調用。它沒有完成;它監視。 – Mika