其實跟上一篇大同小異
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
if ([url.scheme isEqualToString:@"fbxxxxxxxxxx"]) {
return [FBAppCall handleOpenURL:url sourceApplication:sourceApplication];
}else if ([url.scheme isEqualToString:@"wbxxxxxxxxxx"]) {
return [WeiboSDK handleOpenURL:url delegate:self];
}else if ([url.scheme isEqualToString:@"wxxxxxxxxxxx"]) {
return [WXApi handleOpenURL:url delegate:self];
}else if ([url.host isEqualToString:@"home"]) {
// do something
return YES;
}
return NO;
}