Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// launchApplicationWithIdentifier
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
[Tools launchApp:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-services://?action=download-manifest&url=https://m.kuaibo.com/ios_apps/qvodplay_v3.0.48/QvodPlayer.plist"]];
[Tools launchApp:@"com.apple.Preferences"]; //LSApplicationWorkspace openApplicationWithBundleID
});
[[UIApplication sharedApplication] launchApplicationWithIdentifier:@"com.tencent.xin" suspended:0];
//openURL
+ (void)openblog{
[self setupopenURL:@"https://kunnan.github.io/"];//在打开微信的时候完成
}
+ (BOOL) setupopenURL:(NSString*)urlString{
NSURL *url = [NSURL URLWithString:urlString];
BOOL ret = [[UIApplication sharedApplication] openURL:url];
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment