小编ter*_*eks的帖子

ASAuthorizationAppleIDButton 不响应 touchUpInside 事件

我在最新的 Xcode 11.0 我的代码中遇到了奇怪的错误:

let button = ASAuthorizationAppleIDButton(type: .default, style: .black)
button.translatesAutoresizingMaskIntoConstraints = false
button.cornerRadius = 10
button.addTarget(self, action: #selector(appleSignInButtonSelected(_:)), for: .touchUpInside)
Run Code Online (Sandbox Code Playgroud)

选择器从未调用过,但是如果我将事件更改为 touchDown,则一切正常。

ios swift apple-sign-in

22
推荐指数
2
解决办法
2083
查看次数

标签 统计

apple-sign-in ×1

ios ×1

swift ×1