我在iOS8中使用Xcode6。当应用程序在后台运行时,我正在尝试搜索和连接蓝牙设备。我正在使用核心蓝牙框架。我使用Xcode功能选项添加了蓝牙中心和蓝牙外围设备。代码:Appdelegate.h@interfaceWSAppDelegate:UIResponder@property(strong,nonatomic)NSString*savedUUID;@property(strong,nonatomic)CBCentralManager*CBCM;AppDelegate.m-(void)applicationDidEnterBackground:(UIApplication*)ap