登录页面 如果没有安装qq或者微信的话不显示各自的按钮

This commit is contained in:
fengshuo
2021-11-03 16:35:26 +08:00
parent 359cb57a66
commit fb18770f70
3 changed files with 15 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ target 'xplan-ios' do
pod 'mob_sharesdk/ShareSDKPlatforms/QQ'
pod 'mob_sharesdk/ShareSDKPlatforms/WeChat'
pod 'mob_sharesdk/ShareSDKPlatforms/Apple'
pod 'mob_sharesdk/ShareSDKExtension'
#调试
pod 'LookinServer', :configurations => ['Debug']

View File

@@ -30,6 +30,9 @@ PODS:
- MOBFoundation (>= 3.2.9)
- mob_sharesdk/ShareSDK (4.4.2):
- MOBFoundation (>= 3.2.9)
- mob_sharesdk/ShareSDKExtension (4.4.2):
- mob_sharesdk/ShareSDK
- MOBFoundation (>= 3.2.9)
- mob_sharesdk/ShareSDKPlatforms/Apple (4.4.2):
- mob_sharesdk/ShareSDK
- MOBFoundation (>= 3.2.9)
@@ -68,6 +71,7 @@ DEPENDENCIES:
- MBProgressHUD
- MJExtension
- mob_sharesdk
- mob_sharesdk/ShareSDKExtension
- mob_sharesdk/ShareSDKPlatforms/Apple
- mob_sharesdk/ShareSDKPlatforms/QQ
- mob_sharesdk/ShareSDKPlatforms/WeChat
@@ -135,6 +139,6 @@ SPEC CHECKSUMS:
SZTextView: 094dc6acc9beec537685c545d6e3e0d4975174e1
YYText: 5c461d709e24d55a182d1441c41dc639a18a4849
PODFILE CHECKSUM: 6968a06e7b791226635261958cf107f1af64fadf
PODFILE CHECKSUM: c67a976c4f7626b406093a8fb7efe4601ebeda8a
COCOAPODS: 1.10.1

View File

@@ -12,6 +12,7 @@
#import <YYText.h>
#import <NTESQuickPass/NTESQuickPass.h>
#import <AuthenticationServices/ASAuthorizationAppleIDButton.h>
#import <ShareSDKExtension/ShareSDK+Extension.h>
///Tool
#import "UIImage+Utils.h"
#import "GCDHelper.h"
@@ -108,6 +109,14 @@ typedef NS_ENUM(NSUInteger, XYLoginType) {
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
[self.stackView addArrangedSubview:self.appleButton];
#endif
if (![ShareSDK isClientInstalled:SSDKPlatformTypeQQ]) {
self.qqButtonView.hidden = YES;
}
if (![ShareSDK isClientInstalled:SSDKPlatformTypeWechat]) {
self.wxButtonView.hidden = YES;
}
}