首页 > 移动平台 > 详细

ios设置蓝牙,跳转到设蓝牙页面

时间:2015-01-07 19:14:08      阅读:609      评论:0      收藏:0      [点我收藏+]
  1. 添加框架CoreBluetooth.framewprk


    技术分享

  2. 在要跳转蓝牙设置界面添加类#import "CoreBluetooth/CoreBluetooth.h" 并声明代理<CBCentralManagerDelegate>

  3. 设置全局的控件@property (nonatomic, strong)CBCentralManager *cb;技术分享

  4. 在要跳转的地方写

    _cb = [[CBCentralManager alloc] initWithDelegate:self queue:nil];

  5. 若要获得蓝牙状态,实现代理方法

    -(void)centralManagerDidUpdateState:(CBCentralManager *)central

    {

    }

ios设置蓝牙,跳转到设蓝牙页面

原文:http://5828666.blog.51cto.com/5818666/1600185

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!