Skip to content

Instantly share code, notes, and snippets.

@peerasak-u
Created October 7, 2013 03:47
Show Gist options
  • Select an option

  • Save peerasak-u/6862277 to your computer and use it in GitHub Desktop.

Select an option

Save peerasak-u/6862277 to your computer and use it in GitHub Desktop.
UUID Fixed
#import "UIDevice+Identifier.h"
- (NSString *) identifierForVendor1
{
if ([[UIDevice currentDevice] respondsToSelector:@selector(identifierForVendor)]) {
return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
}
return @"";
}
NSString *like_UDID=[NSString stringWithFormat:@"%@",
[[UIDevice currentDevice] identifierForVendor1]];
NSLog(@"%@",like_UDID);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment