1. 在工程里面引入CoreLocation.framework和MapKit.framework。
2. 在.h文件里面加入如下代码:
3. 在.m文件中加入以下代码:
编译运行下就能看到结果了,哈哈~