隐藏键盘
当被按下时,这个会在er上调用 。
- func addHideKeyboardButton() {
- hideKeyboardButton = UIButton.buttonWithType(.System) as UIButton
- hideKeyboardButton.setTitle("Hide Keyboard", forState: .Normal)
- hideKeyboardButton.sizeToFit()
- hideKeyboardButton.setTranslatesAutoresizingMaskIntoConstraints(false)
- hideKeyboardButton.addTarget(self, action: "dismissKeyboard", forControlEvents: .TouchUpInside)
- view.addSubview(hideKeyboardButton)
- var rightSideConstraint = NSLayoutConstraint(item: hideKeyboardButton, attribute: .Right, relatedBy: .Equal, toItem: view, attribute: .Right, multiplier: 1.0, constant: -10.0)
- var bottomConstraint = NSLayoutConstraint(item: hideKeyboardButton, attribute: .Bottom, relatedBy: .Equal, toItem: view, attribute: .Bottom, multiplier: 1.0, constant: -10.0)
-
- H5移动端 IOS输入法遮挡input解决思路
- 【h5】ios自带输入法输入中文时多次触发input事件的处理
- iOS输入法—基于XCTest框架的异步测试
- 关于ios下中文输入法 连续输入空格问题
- 间谍程序Exodus移植到iOS平台上 恐窃取用户信息
- ios越狱后还能回来吗
- ios功能暂不可用是什么意思
- fhd+和qhd+屏幕区别
- 光遇合服后安卓可以登ios号吗
- 4寸是dn多少的