🌤️ 加载中...
#
IOS 2019-03-19

IOS开发笔记-TextField点击唤起手机输入法,点击空白处收回输入法

By Jove 1 Views 2 MIN READ 0 Comments


class ViewController: UIViewController,UITextFieldDelegate {
  override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
    {
        TextField_namea.resignFirstResponder()
        TextField_nameb.resignFirstResponder()
        TextField_namec.resignFirstResponder()
        TextField_named.resignFirstResponder()
    }
}

本文由 Jove 原创

采用 CC BY-NC-SA 4.0 协议进行许可

转载请注明出处:https://www.jozxing.cc/index.php/archives/1527/

TAGS: 无标签

相关推荐

  • 暂无相关推荐,看看别的吧。

0 评论