苹果审核规则,不能引导用户安装第三方软件,所以第三方登录时,不能提醒用户未安装该软件。最好的办法是隐藏或者禁止点击而且颜色变灰
//判断第三方登录 是否安装APP,没安装则禁止点击图标变灰
拿友盟分享为例:
- (void)isHidenThirdBtn
{
BOOL WXinstalled = [UMSocialManager defaultManager] isInstall:UMSocialPlatformType_WechatSession];
BOOL QQinstalled = [UMSocialManager defaultManager] isInstall:UMSocialPlatformType_QQ];
if (!WXinstalled && !QQinstalled) {
self.winChatButton.hidden = YES;
self.qqButton.hidden = YES;
}
if (!WXinstalled && QQinstalled) {
self.winChatButton.hidden = YES;
}
if (WXinstalled && !QQinstalled) {
self.qqButton.hidden = YES;
}
}
网友评论