Quick one liner for you today: Ever wondered how to retrieve the user’s phone number programmatically? Well, here’s the trick:
id number = [[NSUserDefaults standardUserDefaults] objectForKey:@”SBFormattedPhoneNumber”];
NSLog(@”user phone number is %@”, number);
Beats the heck out of asking the user to select their own address book entry or something like that, doesn’t it now?