判断UITextField 输入为空 输入全为空格
2016-02-02 10:55
471 查看
NSString *temp = [textField.text stringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceCharacterSet]];
//看剩下的字符串的长度是否为零
if ([temp length]!=0) {
...
}
//看剩下的字符串的长度是否为零
if ([temp length]!=0) {
...
}
相关文章推荐
- UIViewContentMode各类型效果
- easyui treegrid 默认子集折叠
- ORA-01461: can bind a LONG value only for insert into a LONG column 解决方法
- LeetCode 303. Range Sum Query - Immutable
- iOS:SVN出错 Description : The working copy is locked due to a previous error
- 【设计和开发一套简单自动化UI框架】
- iOS程序猿之UIBezierPath类属性和方法(画图路径)
- Core Bluetooth 使用教程
- IBM的云平台Bluemix使用初体验-创建第一个容器
- UE4编译配置
- UI_UISegmentedControl 控件
- 解决warning: incompatible implicit declaration of built-in function 'malloc'
- 能说easyui的性能太烂了吗?
- CodeForces 618B Guess the Permutation
- 2016太原UI设计师郭文军告你UI设计企业流程
- C# ClickOnce不支持请求执行级别"requireAdministrator"
- duilib之源码分析
- MSP430应用技巧3:MSP-FET430UIF V3驱动程序的安装
- 2.1 UIAlertView,UIActionSheet,UIDatePicker,UIPickerView使用的简单总结
- pentest - masscan-web-ui