美文网首页
iOS UITableView 不响应touchesBegan

iOS UITableView 不响应touchesBegan

作者: 咋了爸爸 | 来源:发表于2017-11-09 15:57 被阅读19次
   //添加如下代码,  当视图滚动的时候 回收键盘
        self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;

当然也可以重写tableview的 touch方法 来实现

相关文章

网友评论

      本文标题:iOS UITableView 不响应touchesBegan

      本文链接:https://www.haomeiwen.com/subject/nvfmmxtx.html