我searhing四周,我發現這一點:如何使標籤顯示爲UDID或序列號的設備唯一代碼sck?
NSString *uid = [[UIDevice currentDevice] uniqueIdentifier];
因此我需要什麼?我是開發新手,想了解如何使用此代碼。任何幫助非常感謝。非常感謝你:)
我searhing四周,我發現這一點:如何使標籤顯示爲UDID或序列號的設備唯一代碼sck?
NSString *uid = [[UIDevice currentDevice] uniqueIdentifier];
因此我需要什麼?我是開發新手,想了解如何使用此代碼。任何幫助非常感謝。非常感謝你:)
不要使用此
[[UIDevice currentDevice] uniqueIdentifier]
其在iOS 5中被棄用,你的應用程序將會被拒絕。 http://www.macrumors.com/2013/03/21/apple-will-no-longer-approve-apps-using-unique-device-identifier-udid-beginning-may-1/
檢查下面的鏈接。這將幫助你 http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now – coder1010 2013-05-10 03:55:42