Shuvo Joseph Shuvo Joseph - 4 months ago 23
Objective-C Question

Convert NSNumber to CBUUID

I have a device UDID which is a NSNumber.

I need to convert it to CBUUID.

How can I convert?

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