textfield在实际开发中用到的代理方法
来源:互联网 发布:windows 虚拟桌面软件 编辑:程序博客网 时间:2024/04/20 12:43
#pragma mark - UItextFieldDelegate
//点空白收键盘
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[self.view endEditing:YES];
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return YES;
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
NSString *str1 = [NSString stringWithFormat:@"%@%@",textField.text,string];//str1:手机号
if([str1 isMobilePhoneNumber])
{
buttonCode_.backgroundColor = DCOLOR_RED_5_0;
}else{
}
return YES;
}
//点空白收键盘
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[self.view endEditing:YES];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return YES;
}
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
NSString *str1 = [NSString stringWithFormat:@"%@%@",textField.text,string];//str1:手机号
if([str1 isMobilePhoneNumber])
{
buttonCode_.backgroundColor = DCOLOR_RED_5_0;
}else{
}
return YES;
}
0 0
- textfield在实际开发中用到的代理方法
- Android实际开发中用到的线程池
- 实际项目中用到的logback例子
- 数据结构笔记--实际软件开发中用到的最多的数据结构和算法
- 在实际软件开发中运用到的工具
- 在自己开发的软件中用到的图标
- 那些在开发中用到的正则表达式
- 本人在开发过程中用到的资源
- 一些简单在开发中用到的封装函数
- 实际工作中用到的一些知识总结
- 项目实际运用中用到spring的什么功能?
- 线上生成测试门店:实际工作中用到的
- 开发中用到的辅助工具
- 开发中用到的软件
- 在实际项目中用UML建模的总结
- RPC中用到的 *动态代理,反射机制,NIO
- 简单了解spring中用到的代理模式
- 开发中用到的有用的网址
- linux下查看已经安装的jdk 并卸载jdk
- 基于springmvc的文件上传及其讲解
- Redis pipeline在java中的运用
- [think in java2]java并发问题总结
- 基于VS2013的ActiveX控件实现
- textfield在实际开发中用到的代理方法
- linux阻塞式网络小程序
- 一起talk GDB吧(第五回:GDB查看信息)
- 1001:图形的面积
- 二叉树基本概念
- JS正则表达式之特殊符号
- HTML5开发之获取设备的地理坐标
- Ubutn下面的eclipse的菜单栏显示不出来的解决办法!!!
- 第一个makefile