我想在CoreBluetooth框架的CBCentralManager的NSConcreteMapTable中添加一些项目。但我徘徊说我不能在我的项目中导入这个类?为什么?我解决它有多冷?
_peripheral = [[NSClassFromString(@"CBPeripheral") alloc] init];
[_peripheral setValue:@"P_Mote" forKey:@"name"];
[_peripheral setValue:[CBUUID UUIDWithString:@"7811962A-4A72-FA7F-856C-E8EAADE1452E"] forKey:@"identifier"];
NSConcreteMapTable *perif = [self.centralManager valueForKey:@"_peripherals"];
虽然我添加了#import <Foundation/Foundation.h>