如何在Objective C中将NSNumber转换为CBUUID

时间:2016-07-17 09:18:26

标签: objective-c type-conversion bluetooth-lowenergy uuid nsnumber

我的设备UDID为NSNumber

我需要将其转换为CBUUID

我该如何转换?

1 个答案:

答案 0 :(得分:0)

NSNumber *aNumber = @123456;   
CBUUID *cUUID = [CBUUID UUIDWithString:[aNumber stringValue]];