Last active
May 14, 2018 03:49
-
-
Save zhangkn/420901daf61fc6fd25c2501ed4b6fb62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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