How to get Device UDID in programmatically in iOS7?

前端 未结 10 2246
梦谈多话
梦谈多话 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条回答
  •  悲&欢浪女
    2020-12-04 19:06

    In Swift 3.0:

    UIDevice.current.identifierForVendor!.uuidString
    

    old version

    UIDevice.currentDevice().identifierForVendor
    

    you want a string:

    UIDevice.currentDevice().identifierForVendor!.UUIDString
    

提交回复
热议问题