[問題] 重複使用問題
其實標題不知道該怎麼問....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];
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.34.163.13
※ 文章網址: http://www.ptt.cc/bbs/MacDev/M.1411639893.A.313.html
→
09/25 20:01, , 1F
09/25 20:01, 1F
推
09/25 21:55, , 2F
09/25 21:55, 2F
推
09/25 22:03, , 3F
09/25 22:03, 3F
→
09/26 08:35, , 4F
09/26 08:35, 4F
推
09/26 09:18, , 5F
09/26 09:18, 5F
→
09/26 09:22, , 6F
09/26 09:22, 6F
推
09/26 12:14, , 7F
09/26 12:14, 7F
討論串 (同標題文章)
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章