08 2017 档案

摘要: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 阅读(172) 评论(0) 推荐(0)
摘要:nsarray 类定义的方法 1. makeObjectsPerformSelector:@select(aMethod) 简介:让数组中的每个元素 都调用 aMethod 2. makeObjectsPerformSelector:@select(aMethod) withObject:oneOb 阅读全文
posted @ 2017-08-22 10:08 wzdevelop 阅读(149) 评论(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 阅读(385) 评论(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 阅读(177) 评论(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 阅读(1568) 评论(0) 推荐(0)
摘要:PCH文件(Precompile Prefix Header File),也就是预编译头文件,其作用就是,方便你一次性导入在多个文件中同时用到的头文件、宏或者URL地址等(全局使用),可以有效的帮你节约时间,提高开发效率。但是,自从Xcode 5之后,这个文件默认就不再提供了,如果你还想继续使用的话 阅读全文
posted @ 2017-08-10 14:44 wzdevelop 阅读(32393) 评论(0) 推荐(0)
摘要:1. Save for iOS App Store Deployment 保存到本地 准备上传App Store 或者在越狱的iOS设备上使用 2. Save for Ad Hoc Deployment 苹果的官方解释是:To distribute your app to users with de 阅读全文
posted @ 2017-08-08 18:10 wzdevelop 阅读(387) 评论(0) 推荐(0)
摘要:#define kDegreesToRadian(x) (M_PI * (x) / 180.0) #define kRadianToDegrees(radian) (radian*180.0)/(M_PI) - (void)viewDidLoad { [superviewDidLoad]; self 阅读全文
posted @ 2017-08-07 11:44 wzdevelop 阅读(1940) 评论(0) 推荐(0)
摘要:虽然在ios开发这一行已经做了将近两年了 但一直没有系统的整理过什么 希望在博客园能记录一下开发中遇到的问题 阅读全文
posted @ 2017-08-07 10:26 wzdevelop 阅读(116) 评论(0) 推荐(0)