This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我有一个 UISwitch,它在打开时显示密码并在关闭时隐藏它。单击它时,会弹出一个 AlertView 要求输入密码然后确认。我的问题是当用户单击它/输入错误密码时,开关仍会切换为显示 OFF 文本,而不是仍处于 ON 状态。我需要它仍然读取 ON 状态/文本,直到用户在 alertview 上成功输入正确的密码。