登录页面 如果没有安装qq或者微信的话不显示各自的按钮
This commit is contained in:
1
Podfile
1
Podfile
@@ -44,6 +44,7 @@ target 'xplan-ios' do
|
|||||||
pod 'mob_sharesdk/ShareSDKPlatforms/QQ'
|
pod 'mob_sharesdk/ShareSDKPlatforms/QQ'
|
||||||
pod 'mob_sharesdk/ShareSDKPlatforms/WeChat'
|
pod 'mob_sharesdk/ShareSDKPlatforms/WeChat'
|
||||||
pod 'mob_sharesdk/ShareSDKPlatforms/Apple'
|
pod 'mob_sharesdk/ShareSDKPlatforms/Apple'
|
||||||
|
pod 'mob_sharesdk/ShareSDKExtension'
|
||||||
#调试
|
#调试
|
||||||
pod 'LookinServer', :configurations => ['Debug']
|
pod 'LookinServer', :configurations => ['Debug']
|
||||||
|
|
||||||
|
@@ -30,6 +30,9 @@ PODS:
|
|||||||
- MOBFoundation (>= 3.2.9)
|
- MOBFoundation (>= 3.2.9)
|
||||||
- mob_sharesdk/ShareSDK (4.4.2):
|
- mob_sharesdk/ShareSDK (4.4.2):
|
||||||
- MOBFoundation (>= 3.2.9)
|
- 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/ShareSDKPlatforms/Apple (4.4.2):
|
||||||
- mob_sharesdk/ShareSDK
|
- mob_sharesdk/ShareSDK
|
||||||
- MOBFoundation (>= 3.2.9)
|
- MOBFoundation (>= 3.2.9)
|
||||||
@@ -68,6 +71,7 @@ DEPENDENCIES:
|
|||||||
- MBProgressHUD
|
- MBProgressHUD
|
||||||
- MJExtension
|
- MJExtension
|
||||||
- mob_sharesdk
|
- mob_sharesdk
|
||||||
|
- mob_sharesdk/ShareSDKExtension
|
||||||
- mob_sharesdk/ShareSDKPlatforms/Apple
|
- mob_sharesdk/ShareSDKPlatforms/Apple
|
||||||
- mob_sharesdk/ShareSDKPlatforms/QQ
|
- mob_sharesdk/ShareSDKPlatforms/QQ
|
||||||
- mob_sharesdk/ShareSDKPlatforms/WeChat
|
- mob_sharesdk/ShareSDKPlatforms/WeChat
|
||||||
@@ -135,6 +139,6 @@ SPEC CHECKSUMS:
|
|||||||
SZTextView: 094dc6acc9beec537685c545d6e3e0d4975174e1
|
SZTextView: 094dc6acc9beec537685c545d6e3e0d4975174e1
|
||||||
YYText: 5c461d709e24d55a182d1441c41dc639a18a4849
|
YYText: 5c461d709e24d55a182d1441c41dc639a18a4849
|
||||||
|
|
||||||
PODFILE CHECKSUM: 6968a06e7b791226635261958cf107f1af64fadf
|
PODFILE CHECKSUM: c67a976c4f7626b406093a8fb7efe4601ebeda8a
|
||||||
|
|
||||||
COCOAPODS: 1.10.1
|
COCOAPODS: 1.10.1
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
#import <YYText.h>
|
#import <YYText.h>
|
||||||
#import <NTESQuickPass/NTESQuickPass.h>
|
#import <NTESQuickPass/NTESQuickPass.h>
|
||||||
#import <AuthenticationServices/ASAuthorizationAppleIDButton.h>
|
#import <AuthenticationServices/ASAuthorizationAppleIDButton.h>
|
||||||
|
#import <ShareSDKExtension/ShareSDK+Extension.h>
|
||||||
///Tool
|
///Tool
|
||||||
#import "UIImage+Utils.h"
|
#import "UIImage+Utils.h"
|
||||||
#import "GCDHelper.h"
|
#import "GCDHelper.h"
|
||||||
@@ -108,6 +109,14 @@ typedef NS_ENUM(NSUInteger, XYLoginType) {
|
|||||||
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
|
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
|
||||||
[self.stackView addArrangedSubview:self.appleButton];
|
[self.stackView addArrangedSubview:self.appleButton];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (![ShareSDK isClientInstalled:SSDKPlatformTypeQQ]) {
|
||||||
|
self.qqButtonView.hidden = YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (![ShareSDK isClientInstalled:SSDKPlatformTypeWechat]) {
|
||||||
|
self.wxButtonView.hidden = YES;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user