Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created September 18, 2014 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sivabudh/c477f0bdc4c45626a256 to your computer and use it in GitHub Desktop.
Save sivabudh/c477f0bdc4c45626a256 to your computer and use it in GitHub Desktop.
- (void)openOneMinTimesheet
{
NSString *customURL = @"OneMinTimesheet://";
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:customURL]])
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:customURL]];
}
else
{
NSString *installURL = @"http://appstore.g-able.com/timesheet/";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:installURL]];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment