摘要: 方式一: extension LoginViewController:UITextFieldDelegate { func textFieldShouldReturn(textField: UITextField) -> Bool { textField.resignFirstResponder() 阅读全文
posted @ 2016-12-22 15:05 公羽寒 阅读(1907) 评论(0) 推荐(0)
摘要: // 按钮点击事件 func onTouchUpInside() { struct touchUpInside { static var count: Int = 0 } touchUpInside.count += 1 print(touchUpInside.count) if touchUpIn 阅读全文
posted @ 2016-12-22 13:26 公羽寒 阅读(987) 评论(0) 推荐(0)