摘要: NSArray *arr = @[@"1", @"2", @"3", @"4", @"5"]; int time = 1;//间隔时间s for (int i = 0; i < arr.count; i++) { dispatch_after(dispatch_time(DISPATCH_TIME_ 阅读全文
posted @ 2017-08-22 10:09 wzdevelop 阅读(161) 评论(0) 推荐(0) 编辑
摘要: nsarray 类定义的方法 1. makeObjectsPerformSelector:@select(aMethod) 简介:让数组中的每个元素 都调用 aMethod 2. makeObjectsPerformSelector:@select(aMethod) withObject:oneOb 阅读全文
posted @ 2017-08-22 10:08 wzdevelop 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 在cell.h定义 @property(nonatomic,strong)void(^pushType)(NSInteger); 在cell.m按钮点击时 _pushType(1);(举例) 在用到cell的tableView中 cell.pushType=^(NSInteger index){ i 阅读全文
posted @ 2017-08-22 10:07 wzdevelop 阅读(352) 评论(0) 推荐(0) 编辑
摘要: #define kWidth [UIScreen mainScreen].bounds.size.width #define kHeight [UIScreen mainScreen].bounds.size.height #define RGBA(r,g,b,a) [UIColor colorWi 阅读全文
posted @ 2017-08-22 10:04 wzdevelop 阅读(168) 评论(0) 推荐(0) 编辑
摘要: - (NSString *)valiMobile:(NSString *)mobile{ if (mobile.length < 11) { return @"false"; }else{ /** * 移动号段正则表达式 */ NSString *CM_NUM = @"^((13[4-9])|(14 阅读全文
posted @ 2017-08-22 10:03 wzdevelop 阅读(1540) 评论(0) 推荐(0) 编辑