I am developing iOS Swift.
I have convert the NSUUID to String like the following:
var bdAddr: NSUUID?
var text: String = bdAddr!.UUIDString
But how to convert String to NSUUID in Swift?
If you look at Apple's NSUUID documentation You'll see a method -initWithUUIDString: that initializes the NSUUID object with the string representation of a UUID.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With