Objective C Get iPhone Device GUID

Following Xcode reveals you the device id

 
UIDevice *device = [UIDevice currentDevice];
NSString *uniqueIdentifier = [device uniqueIdentifier];
/*[device release];*/
NSLog(@"Device GUID: %@", uniqueIdentifier);
2 Comments

Objective C Get iPhone number

How to get the iphone number from sim using xcode or objective c?

NSString *num = [[NSUserDefaults standardUserDefaults]
                           stringForKey:@"SBFormattedPhoneNumber"];
 
NSLog(@"Phone Number: %@", num);</div>

That’s all!

2 Comments