Commit bed727f0b69350dac10cbd2a36e9a99c9ce4b309
1 parent
298606bf
no message
Showing
2 changed files
with
3 additions
and
3 deletions
CNLiveBLoginModule/Classes/ThreeLogin/CNLiveThreeLoginView.m
| @@ -60,7 +60,7 @@ static NSInteger const rowHeight = 60; | @@ -60,7 +60,7 @@ static NSInteger const rowHeight = 60; | ||
| 60 | 60 | ||
| 61 | for(int i = 0; i < pics.count; i++){ | 61 | for(int i = 0; i < pics.count; i++){ |
| 62 | // 苹果登录在最后一个 | 62 | // 苹果登录在最后一个 |
| 63 | - if (i == pics.count-1) { | 63 | + if (pics.count-1 == i && [pics[pics.count-1] isEqualToString:@"login_apple"]) { |
| 64 | if (@available(iOS 13, *)) { | 64 | if (@available(iOS 13, *)) { |
| 65 | ASAuthorizationAppleIDButton *btn = [ASAuthorizationAppleIDButton buttonWithType:ASAuthorizationAppleIDButtonTypeDefault style:ASAuthorizationAppleIDButtonStyleWhite]; | 65 | ASAuthorizationAppleIDButton *btn = [ASAuthorizationAppleIDButton buttonWithType:ASAuthorizationAppleIDButtonTypeDefault style:ASAuthorizationAppleIDButtonStyleWhite]; |
| 66 | btn.tag = 10000+i; | 66 | btn.tag = 10000+i; |
Example/CNLiveBLoginModule/CNLIVEAppDelegate.m
| @@ -28,8 +28,8 @@ | @@ -28,8 +28,8 @@ | ||
| 28 | } | 28 | } |
| 29 | [self networkParamAction]; | 29 | [self networkParamAction]; |
| 30 | 30 | ||
| 31 | - CNLiveBindingTelController *vc = [[CNLiveBindingTelController alloc] init]; | ||
| 32 | -// vc.isShowClose = NO; | 31 | + CNLiveLoginController *vc = [[CNLiveLoginController alloc] init]; |
| 32 | + vc.isShowClose = NO; | ||
| 33 | UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc]; | 33 | UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc]; |
| 34 | self.window.rootViewController = nav; | 34 | self.window.rootViewController = nav; |
| 35 | [self.window makeKeyAndVisible]; | 35 | [self.window makeKeyAndVisible]; |