- 博客(4)
- 收藏
- 关注
转载 iOS各种判断判断(手机号/邮箱等)
//邮箱 + (BOOL) validateEmail:(NSString *)email { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF
2016-11-29 10:16:33 776
转载 iOS中简单易懂秒杀倒计时/倒计时
@interface ViewController () { dispatch_source_t _timer; } @end @implementation ViewController /** * 获取当天的年月日的字符串 * 这里测试用 * @return 格式为年-月-日
2016-11-24 14:40:12 817
转载 使用虚拟机报.o错误 清楚二进制文件
前往资源库(finder的工具栏 鼠标停在前往 然后按住option)->developer->Developer-Xcode 删除DeriverdData这个文件夹 然后cd到工程目录 xattr -rc
2016-11-10 13:17:08 343
转载 点击响应链下传
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { id hitView = [super hitTest:point withEvent:event]; if (hitView == self) { return nil; } else {
2016-11-07 11:12:31 184
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人