快速集成苹果授权登陆(Sign in with Apple)
####前期工作 需要在苹果后台打开该选项,并且重新生成Profiles配置文件 或者 在Xcode11 Signing & Capabilities中添加Sign In With Apple 证书会自动更新
####集成 1.下载NCSignInWithApple 导入文件夹NCSignInWithApple到工程
2.实现下面的代码
[HandleSignInWithAppleModel signInWithAppleWithButtonRect:CGRectMake(30, self.view.bounds.size.height - 180, self.view.bounds.size.width - 60, 100) withSupView:self.view withType:ASAuthorizationAppleIDButtonTypeDefault withStyle:ASAuthorizationAppleIDButtonStyleWhite success:^(ASAuthorization * _Nonnull authorization, NSString * _Nonnull user) {
NSLog(@"授权成功");
} failure:^(NSError * _Nonnull err) {
NSLog(@"授权失败");
}];