swift 点击空白键盘下去
发布时间:2020-12-14 06:55:10 所属栏目:百科 来源:网络整理
导读:classAddDayReportViewController:UITableViewController{ @IBOutletweakvarworkcontent:UITextView! overridefuncviewDidLoad(){ super.viewDidLoad() //注册点击事件 view.addGestureRecognizer(UITapGestureRecognizer(target:self,action:"handleTap:"))
UIGestureRecognizer类用于手势识别,它的子类有主要有六个分别是: UITapGestureRecognizer(轻击一下) UIPinchGestureRecognizer(两指控制的缩放) UIRotationGestureRecognizer(旋转) UISwipeGestureRecognizer(滑动,快速移动) UIPanGestureRecognizer(拖移,慢慢移动) UILongPressGestureRecognizer(长按) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |