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
For getting UDID: (If you're using this Might be App store guys won't allow it --> As per my concern)
- (NSString *)udid
{
void *gestalt = dlopen("/usr/lib/libMobileGestalt.dylib", RTLD_GLOBAL | RTLD_LAZY);
CFStringRef (*MGCopyAnswer)(CFStringRef) = (CFStringRef (*)(CFStringRef))(dlsym(gestalt, "MGCopyAnswer"));
return CFBridgingRelease(MGCopyAnswer(CFSTR("UniqueDeviceID")));
}
**Entitlements:**
com.apple.private.MobileGestalt.AllowedProtectedKeys
UniqueDeviceID
For Getting UUID:
self.uuidTxtFldRef.text = [[[UIDevice currentDevice] identifierForVendor] UUIDString];