2014-04-12 29 views

回答

4

您還可以使用位置 CLLocationManager類的方法,它將返回設備的最後一個已知位置。

manager = [[CLLocationManager alloc] init]; [manager startUpdatingLocation]; CLLocation *location = [manager location];

+0

非常感謝你,這是我真正需要的。 – zproject89

+0

好答案.... –

4

檢查下面的鏈接,這些都是位置更新的良好的執行與Block

https://github.com/ideaismobile/AKLocationManager

https://github.com/axldyb/CLLocationManager-blocks

https://github.com/keithpitt/DKLocationManager

即使你可以用NSNotificationCenter它,

檢查這個:https://stackoverflow.com/a/16173504/2919739

+0

非常感謝。我想我需要一些時間仔細看看。 – zproject89

+0

歡迎兄弟和你不要忘記接受我的答案如果你覺得它有用:) –

相關問題