How to get Device UDID in programmatically in iOS7?

前端 未结 10 2249
梦谈多话
梦谈多话 2020-12-04 18:33

How to get device UDID in programatically in iOS7.[[UIDevice currentDevice] uniqueIdentifier] I was used this code This is deprecated iOS7. how to get the devic

10条回答
  •  猫巷女王i
    2020-12-04 18:49

    Swift 2.2+ proper way to get UUID:

    if let UUID = UIDevice.currentDevice().identifierForVendor {
      print("UUID: \(UUID.UUIDString)")
    }
    

提交回复
热议问题