Shuvo Joseph Shuvo Joseph - 1 year ago 98
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 Source
NSNumber *aNumber = @123456;   
CBUUID *cUUID = [CBUUID UUIDWithString:[aNumber stringValue]];