2014-04-12 26 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

欢迎兄弟和你不要忘记接受我的答案如果你觉得它有用:) –

相关问题