Created
February 5, 2012 05:59
-
-
Save maripo/1743326 to your computer and use it in GitHub Desktop.
Prevent "UIDevice.uniqueIdentifier" from returning real UDID value.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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