Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
iOS 中有没有办法在解除警报后打开文本字段(就像用户点击它(调出键盘)一样)?没有任何代码要显示,因为我不知道从哪里开始!:)
实现UIAlertViewDelegate 方法。
UIAlertViewDelegate
在clickedButtonAtIndex:方法上,通过更改hidden属性或addSubview:
clickedButtonAtIndex:
hidden
addSubview:
并调出键盘
[textField becomeFirstResponder];