UIApplication Archives

How to open a URL in Safari programmatically

Instead of loading a URL into a UIWebView we can also launch Safari to display it: UIApplication *mySafari = [UIApplication sharedApplication]; NSURL *myURL = [[NSURL alloc]initWithString:@”http://www.mydomain.com”; [mySafari openURL:myURL]; The method returns a BOOL value which will feed back if this operation was a success or not: if (![mySafari openURL:myURL]) { // opening didn’t work } […]

How to link to an iOS App

Direct web link to your app or developer account showing all your apps: http://itunes.com/apps/my-app-name http://itunes.com/apps/my-developer-name itms://itunes.com/apps/my-app-name (opens iTunes) itms://itunes.com/apps/my-developer-name (opens iTunes) itms-apps://itunes.com/apps/my-app-name (opens App Store) itms-apps://itunes.com/apps/my-developer-name (opens App Store) Direct link to a country specific app store (say Germany in this exampe): http://itunes.apple.com/de/app/my-app-name If your app name contains spaces replace them with dashes. Replace http […]