File tree 2 files changed +12
-1
lines changed 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 37
37
</dict >
38
38
</array >
39
39
<key >CFBundleVersion </key >
40
- <string >5.0.201802091630 </string >
40
+ <string >5.0.201802130930 </string >
41
41
<key >ITSAppUsesNonExemptEncryption </key >
42
42
<false />
43
43
<key >LSApplicationQueriesSchemes </key >
Original file line number Diff line number Diff line change @@ -342,6 +342,8 @@ - (UIView *)customFooterView{
342
342
});
343
343
[_underLoginBtn addTarget: self action: @selector (underLoginBtnClicked: ) forControlEvents: UIControlEventTouchUpInside];
344
344
345
+ _underLoginBtn.hidden = ![self p_canOpenWeiXin ];
346
+
345
347
UIButton *cannotLoginBtn = ({
346
348
UIButton *button = [UIButton new ];
347
349
[button.titleLabel setFont: [UIFont systemFontOfSize: 14 ]];
@@ -586,4 +588,13 @@ - (void)p_thridPlatformLogin:(UMSocialResponse *)resp{
586
588
}];
587
589
}
588
590
591
+ #pragma mark - app url
592
+ - (BOOL )p_canOpenWeiXin {
593
+ return [self p_canOpen: @" weixin://" ];
594
+ }
595
+
596
+ - (BOOL )p_canOpen : (NSString *)url {
597
+ return [[UIApplication sharedApplication ] canOpenURL: [NSURL URLWithString: url]];
598
+ }
599
+
589
600
@end
You can’t perform that action at this time.
0 commit comments