摘要: 利用 实现文字缩进 阅读全文
posted @ 2016-08-18 09:31 lancely 阅读(4677) 评论(0) 推荐(0) 编辑
摘要: 国内手机号 匹配中文字符 匹配双字节字符(包括汉字在内) 匹配空白行 匹配EMAIL地址 {|}~ ]+(?:\.[\w! $%&' +/=?^_ 匹配网址URL 匹配国内电话号码 匹配腾讯QQ号 匹配中国邮政编码 匹配18位身份证号 匹配正整数 匹配负整数 匹配非负整数(正整数 + 0) 匹配非正 阅读全文
posted @ 2016-08-18 09:31 lancely 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 下面是带参数情况 阅读全文
posted @ 2016-08-18 09:30 lancely 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: 利用pod trunk发布程序 注册 查收邮件 如果是QQ邮箱,可能会被放到“垃圾箱”中,并不一定是“收件箱” 点击邮件中的链接: https://trunk.cocoapods.org/sessions/verify/xxxx 接下来查看个人信息 中间可能遇到这种错误 这时候需要尝试更新gem源或 阅读全文
posted @ 2016-08-18 09:30 lancely 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 添加一个分类 参考链接 "NSArray of weak references (__unsafe_unretained) to objects under ARC" "Non retaining array for delegates" 阅读全文
posted @ 2016-08-18 09:29 lancely 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: ```objc // 文件夹大小(字节) - (unsigned long long)folderSizeAtPath:(NSString *)folderPath{ NSFileManager *manager = [NSFileManager defaultManager]; if (![manager fileExistsAtPath:folderPath]) return ... 阅读全文
posted @ 2016-08-18 09:29 lancely 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: 如果cell里面有UIScrollView控件 在 或 (xib)方法处理 阅读全文
posted @ 2016-08-18 09:29 lancely 阅读(1534) 评论(0) 推荐(0) 编辑
摘要: 一个对象是否是某个类的成员 一个对象是否是一个类的成员,或者是派生自该类的类的成员 阅读全文
posted @ 2016-08-18 09:28 lancely 阅读(264) 评论(0) 推荐(0) 编辑
摘要: ```objc - (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 40; if (scrollView.contentOffset.y = 0) { scrollView.contentInset = UIEdgeInsetsMake(-scr... 阅读全文
posted @ 2016-08-18 09:27 lancely 阅读(697) 评论(0) 推荐(0) 编辑
摘要: ```objc // // NSDictionary+Log.m // CHCategories // // Created by chaselen on 15/7/13. // Copyright (c) 2015年 chaselen. All rights reserved. // #import @implementation NSDictionary (Log) - (NSS... 阅读全文
posted @ 2016-08-18 09:27 lancely 阅读(334) 评论(0) 推荐(0) 编辑