一、连接蓝牙 显示可以连接的蓝牙设备列表 - (IBAction)buildConnect:(id)sender { // 创建弹窗 GKPeerPickerController *ppc = [[GKPeerPickerController alloc] init]; // 设置代理 @interface ViewController () <GKPeerPickerControllerDelegate ]; } 监听蓝牙的连接 #pragma mark -GKPeerPickerControllerDelegate // 连接成功就会调用 - (void)peerPickerController:(GKPeerPickerController property (nonatomic, strong) GKSession *session; /**< 蓝牙连接会话 */ // 连接成功就会调用 - (void)peerPickerController:(GKPeerPickerController 枚举:发完为止 error:nil]; } 接收 // 连接成功就会调用 - (void)peerPickerController:(GKPeerPickerController