摘要: (转载于http://www.hangge.com/blog/cache/detail_784.html) CoreLocation这个定位框架除了可以获取设备的位置数据,还可以获取设备的方向(可以用来实现指南针功能等)。 1,CLHeading对象通过一组属性提供航向相关数据: magneticH 阅读全文
posted @ 2016-03-04 13:07 Myniac 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 开发中央步骤: 1.添加CoreBluetooth.framework框架到你的工程 (目前swift只需要import CoreBluetooth就行了) 2.继承两个协议:CBCentralManagerDelegate和CBPeripheralDelegate 个人写的demo,有详细注释。看 阅读全文
posted @ 2016-03-04 12:09 Myniac 阅读(3412) 评论(0) 推荐(0) 编辑