iOS Dev Quick Ref

Needed a place to take notes.

Change Product Name
1. From your “Project navigator”, go to your “Supporting Files/InfoPlist.strings” file.
2. Add “CFBundleDisplayName=”Your New Product Name”;”.
3. Repeat this for any language you have (en.lproj/InfoPlist.strings, cn.lproj/InfoPlist.strings, etc)

Open Link in Native Browser

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];

Similarly, to open the mail client:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto:someone@domain.com?subject=a+b"]];

Leave a Reply