Re: [问题] 重复使用问题

楼主: trleee (小孟)   2014-09-30 16:54:51
其实跟上一篇大同小异
- (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;
}

Links booklink

Contact Us: admin [ a t ] ucptt.com