摘要: /*****监听用户是否进入和走出 在某个区域*****/ 1 #import "ViewController.h" 2 #import 3 4 5 @interface ViewController () 6 7 /** */ 8 @property (nonatomi... 阅读全文
posted @ 2015-09-15 19:39 吃饭了吗 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 指南针图片 IBOutlet UIImageView *compassView 1 #import "ViewController.h" 2 #import 3 4 #define isIOS(version) ([[UIDevice currentDevice].systemVersion f... 阅读全文
posted @ 2015-09-15 16:42 吃饭了吗 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 1 // ViewController.m 2 // CoreLocation框架的基本使用—定位 3 // 注意 点: 1.设置地位可用 2. 设置允许本程序定位(对弹出的框,允许即可) 3. 为模拟器 设置位置移动方式, 比如 Freeway Drive(自由驾车模式) 4 ... 阅读全文
posted @ 2015-09-15 16:15 吃饭了吗 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 时间2015-03-19 18:30:59图灵社区由于iOS不能直接控制到GPS,一般来说我们都会使用CLLocationManager来获取地理位置信息,我们会使用manager.desiredAccuracy = kCLLocationAccuracyBest;来请求精确度最高的地理位置信息。但... 阅读全文
posted @ 2015-09-15 15:56 吃饭了吗 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: iOS后台定位实现(2013-01-24 16:43:12)工作中碰到一个定位的应用场景:app需要在后台运行,实时上传用户地理位置。苹果对iOS的规范性在提升了app的品质的同时也带来了对开发者的限制。翻阅了各种官方文档和资料,得出结论如下:1、实现后台定位有2种方式:standard locat... 阅读全文
posted @ 2015-09-15 10:52 吃饭了吗 阅读(855) 评论(1) 推荐(0) 编辑