From: Jay Freeman (saurik) Date: Fri, 29 Aug 2008 22:12:48 +0000 (+0000) Subject: Added uiduid. X-Git-Tag: v1.0.3231~11 X-Git-Url: https://git.saurik.com/uikittools.git/commitdiff_plain/9dcf05302c804d9a6209916734f590acecdfc18c?hp=21202e03ce997feec45c48851c63fa2f382ff19c Added uiduid. --- diff --git a/makefile b/makefile index 740b666..cf9cbd0 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -all: uishoot +all: uiduid uishoot %: %.mm $${PKG_TARG}-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -lobjc diff --git a/uiduid.mm b/uiduid.mm new file mode 100644 index 0000000..f9580f0 --- /dev/null +++ b/uiduid.mm @@ -0,0 +1,12 @@ +#import +#import +#include + +int main(int argc, char *argv[]) { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + + printf("%s\n", [[UIDevice uniqueIdentifier] UTF8String]; + + [pool release]; + return 0; +}