10 2015 档案

摘要:1.工程里增加了版本自动更新. 2.未增加判断网络状态的类Reachability. 3.问题:error itms -90049 This bundel is invalid. The bundle identifier contains disallowed characters [see] X 阅读全文
posted @ 2015-10-29 13:31 TheYouth 阅读(333) 评论(0) 推荐(0) 编辑
摘要:iOS中Block的基础用法转载自简书本文简介本章不会对Block做过多的实现研究。只是讲解基本的用法。纯粹基础知识。结合实际项目怎么去做举例。Block使用场景,可以在两个界面的传值,也可以对代码封装作为参数的传递等。用过GCD就知道Block的精妙之处。Block简介Block是一种比较特殊的数... 阅读全文
posted @ 2015-10-23 08:00 TheYouth 阅读(407) 评论(0) 推荐(0) 编辑
摘要:iOS开发-正则表达式字数2082 阅读138 评论1 喜欢8 正则表达式是一种用来进行文本匹配的工具,其语法优美简洁。在开发中, 查找、对比以及匹配字符串是家常便饭的业务,通过正则表达式我们将这些业务描述成某些需求规则,来让我们的代码更美观、实用。例如我们要验证用户输入的密 码长度是否满足6~18... 阅读全文
posted @ 2015-10-23 07:54 TheYouth 阅读(419) 评论(0) 推荐(0) 编辑
摘要:1.父视图半透明,子视图不透明 FatherView.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.5]; 阅读全文
posted @ 2015-10-22 23:21 TheYouth 阅读(214) 评论(0) 推荐(0) 编辑
摘要:1.时间与时间的比较 ["时间1" timeIntervalSinceDate:"时间2"] >= 0; 阅读全文
posted @ 2015-10-22 23:19 TheYouth 阅读(224) 评论(0) 推荐(0) 编辑
摘要:1.在点击方法中获得手势的父视图 /**tap是手势*/ UIButton *currentBtn = (UIButton *)(tap.view); 阅读全文
posted @ 2015-10-22 23:14 TheYouth 阅读(168) 评论(0) 推荐(0) 编辑
摘要:1.获取系统Window,并设置根控制器 UIWindow *windows = [UIApplication sharedApplication].keyWindow; windows.rootViewController = "要设置的根控制器类"; 2.在appDelegate类中获取stor 阅读全文
posted @ 2015-10-22 23:11 TheYouth 阅读(159) 评论(0) 推荐(0) 编辑
摘要:例子: //验证用户名和密码 - (BOOL)checkUsername { NSString * regex = @"^[A-Za-z0-9]{1,15}$";<br> //正则表达式 NSPredicate *pred = [NSPredicate predicateWithFormat:@"S 阅读全文
posted @ 2015-10-14 16:09 TheYouth 阅读(212) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示