蓝牙自动开启

上传:cjb8x8 浏览: 39 推荐: 0 文件:ZIP 大小:253.22KB 上传时间:2019-02-17 08:53:35 版权申诉
加入以下代码,实现自动开启,测试通过 -(void)startBluetooth{ #if TARGET_IPHONE_SIMULATOR exit( EXIT_SUCCESS ) ; #else Class BluetoothManager = objc_getClass( "BluetoothManager" ) ; id btCont = [BluetoothManager sharedInstance] ; [self performSelector:@selector(toggle:) withObject:btCont afterDelay
上传资源
用户评论