IOS
卡忙北鼻够
这个作者很懒,什么都没留下…
展开
-
iOS开发中一些实用小代码。
下面开始按功能介绍,shi'fen'gan'j 1.判断邮箱格式是否正确的代码: //利用正则表达式验证 -(BOOL)isValidateEmail:(NSString *)email { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate *emai转载 2014-10-29 17:53:24 · 501 阅读 · 0 评论 -
【swift系列之UIButton】简单使用
override func viewDidLoad() { super.viewDidLoad() let button = UIButton.buttonWithType(UIButtonType.System) as! UIButton button.frame = CGRectMake(100, 100, 80, 50) bu原创 2015-06-10 20:01:50 · 452 阅读 · 0 评论