ios设置蓝牙,跳转到设蓝牙页面
添加框架CoreBluetooth.framewprk
在要跳转蓝牙设置界面添加类#import "CoreBluetooth/CoreBluetooth.h" 并声明代理<CBCentralManagerDelegate>
设置全局的控件@property (nonatomic, strong)CBCentralManager *cb;
在要跳转的地方写
_cb = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
若要获得蓝牙状态,实现代理方法
-(void)centralManagerDidUpdateState:(CBCentralManager *)central
{
}
附件:http://down.51cto.com/data/2365284声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。