derdida derdida -4 years ago 169
Swift Question

UUID in Swift iOS 8.1

I have a problem when i try to change my App to iOS 8.1. The Syntax to create a UUID doesent work anymore:

var uuid = NSUUID.UUID().UUIDString

How to create a uuid in iOS 8.1 with Swift?

Answer Source
var uuid = NSUUID().UUIDString
println("UUID string: \(uuid)") // UUID string: 76A4073A-D79C-45FD-A5D6-86E52AD8C771
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download