IOS_根据Bundle ID 唤醒App

Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");

NSObject * workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];

BOOL isopen = [workspace performSelector:@selector(openApplicationWithBundleID:) withObject:@"com.tencent.mqq"];

你可能感兴趣的:(iOS开发)