2016-08-19 49 views

回答

2

再也無法獲得,因爲修訂後的安全政策蘋果的每個設備的唯一ID。 identifierForVendor是您可以選擇的最佳選擇。 您可以嘗試

UIDevice *device = [UIDevice currentDevice]; 

NSString *currentDeviceId = [[device identifierForVendor]UUIDString]; 
2

您可以通過調用這個函數得到它:

UIDevice.currentDevice().identifierForVendor 
1

getUDID()返回不能作出獨特的,由於蘋果的限制,一個虛假的數字。