其实标题不知道该怎么问....XD
因为同时需要fb.google+及微博登入功能
但是google+及微博同时用了
G+
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
return [GPPURLHandler handleURL:url
sourceApplication:sourceApplication
annotation:annotation];
}
微博
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
return [WeiboSDK handleOpenURL:url delegate:self];
}
请问要如何分开?
还是只能这样做呢?
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
if(1){
return [WeiboSDK handleOpenURL:url delegate:self];
}else if (2){
return [GPPURLHandler handleURL:url
sourceApplication:sourceApplication
annotation:annotation];
}
}