zoukankan      html  css  js  c++  java
  • iOS开发经验——点击屏幕空白处退出键盘

    一种比较简单的点击屏幕空白处退出键盘的方法:

    在ViewController中加入如下代码:

       1:  -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
       2:      
       3:  [self.view endEditing:YES];
       4:      
       5:  }

    即可

  • 相关阅读:
    Thread Based Parallelism
    Thread Based Parallelism
    The Divide and Conquer Approach
    Algorithms
    FTP
    POP and IMAP
    通过 python 处理 email
    Android开发环境搭建简介
    Hello world
    mybatis3.2初学感悟
  • 原文地址:https://www.cnblogs.com/zeyang/p/4420933.html
Copyright © 2011-2022 走看看