下面就一句話就能獲取UUID,代碼以下ide
NSString *clientID=[UIDevice currentDevice].identifierForVendor.UUIDString; NSLog(@"clientID:%@",clientID);//clientID:39967DCE-C08E-483E-9A70-9F16BB9DF9CF 32位