1. 首页
  2. 数据库
  3. 其它
  4. iOS中只让textField使用键盘通知的实例代码

iOS中只让textField使用键盘通知的实例代码

上传者: 2021-01-16 16:23:25上传 PDF文件 38.25KB 热度 9次
代码: #import ViewController.h @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //为textField增加键盘事件 [[NSNotificationCenter defaultCenter] addObserver:self selec
下载地址
用户评论