其實標題不知道該怎麼問....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];
}
}