2014-06-13 14 views
0

我想獲得用戶的位置,如果用戶正在或撥打電話。我可以將CTCallCenter用於我的呼叫事件。從CLLocationManager回撥沒有來的話,如果得到一個Phonecall

的,如果其中一個國家是射擊我想獲得的位置......它的工作原理,因爲我看到在右上角的箭頭...

但我不得到CLLocationmanager回調:

-(void)locationManager:(CLLocationManager *)manager 
    didUpdateToLocation:(CLLocation *)newLocation 
     fromLocation:(CLLocation *)oldLocation 

有人知道爲什麼嗎?

更新:只是發現myself..I解決方案必須給init CLLocationManager在主線程...現在的工作

回答

0

就發現myself..I解決方案必須給init CLLocationManager上主線程...現在可以工作

相關問題