Skip to content

Instantly share code, notes, and snippets.

@maripo
Created February 5, 2012 05:59
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maripo/1743326 to your computer and use it in GitHub Desktop.
Save maripo/1743326 to your computer and use it in GitHub Desktop.
Prevent "UIDevice.uniqueIdentifier" from returning real UDID value.
/**
It prevents UIDevice.uniqueIdentifier method from returning real UDID vaue.
It is useful to prevent closed-source libralies to fetch users' UDIDs against
your will.
*/
@interface UIDevice (UDIDkiller)
-(NSString*)uniqueIdentifier;
@end
#import "UDIDkiller.h"
@implementation UIDevice (UDIDkiller)
-(NSString*)uniqueIdentifier {
NSLog(@"CAUTION!!! UIDevice.uniqueIdentifier was called.");
return @"";
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment