![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS-代码整理
比上不足
这个作者很懒,什么都没留下…
展开
-
常用代码整理 (转 1)
1.判断邮箱格式是否正确的代码//利用正则表达式验证-(BOOL)isValidateEmail:(NSString *)email{NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";NSPredicate *emailTest = [NSPredicate predicateWithFormat转载 2015-12-26 22:05:17 · 356 阅读 · 0 评论 -
代码整理-AppDelegate 中
//设置启动图时间 [NSThread sleepForTimeInterval:1.0];//常加 self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.原创 2016-05-26 12:03:03 · 465 阅读 · 0 评论