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

How to Convert NSNumber to CBUUID in Objective C

我有一个设备 UDID,它是 NSNumber

我需要将其转换为 CBUUID

如何转换?

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