【发布时间】:2012-06-19 19:53:47
【问题描述】:
对于我的UITextField.text 值,我可以在 iOS 中使用什么正则表达式语法来验证电子邮件?有没有办法让我检查是否缺少其他 UITextField 或 UITextView?
我可以用它来测试空白值吗:
if(content.text == nil){
//do something
}
else{
//proceed with next course of action
}
【问题讨论】:
标签: objective-c regex cocoa-touch