Apple 标志显得很小。我给 xib 中的 appleSignView 提供了 44px 的高度。
我正在使用的代码:
private func setupAppleSignIn() {
let button = ASAuthorizationAppleIDButton(authorizationButtonType: .signIn, authorizationButtonStyle: .white)
rootView.appleSignView.isHidden = false
button.frame = rootView.appleSignView.bounds
print(button.frame)
rootView.appleSignView.addSubview(button)
button.addTarget(self, action: #selector(handleAuthorizationAppleIDButtonPress), for: .touchUpInside)
}
这是该按钮的默认行为还是我做错了什么? 截图在这里