01 2016 档案

摘要:1. 利用工具 下载地址 http://jeffhodnett.github.io/Unused/ 运行效果如下2. 通过终端 执行 shell 命令a. 第一步建立.sh 文件 如unusedImage.sh#!/bin/shPROJ=`find.-name'*.xib'-o-name'*.[mh... 阅读全文
posted @ 2016-01-27 14:34 LiLM 阅读(278) 评论(0) 推荐(0)
摘要:[[SDImageCache sharedImageCache] getSize]//计算缓存的大小,单位BfloattmpSize=[[SDImageCachesharedImageCache]checkTmpSize]; NSString*clearCacheName=tmpSize>=1?[... 阅读全文
posted @ 2016-01-06 15:43 LiLM 阅读(195) 评论(0) 推荐(0)
摘要:1.dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{// 要执行的代码 });//NSEC_PER_SEC表示的是秒数,它还提供... 阅读全文
posted @ 2016-01-06 12:30 LiLM 阅读(473) 评论(0) 推荐(0)
摘要:Xcode7在Info.plist中add Row添加NSAppTransportSecurity类型Dictionary。在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES*Xcode7.1在Xcode7.1中苹果更改了... 阅读全文
posted @ 2016-01-05 17:30 LiLM 阅读(149) 评论(0) 推荐(0)
摘要:UIView *view = [[UIView alloc]init];view.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.7f]; 阅读全文
posted @ 2016-01-05 17:24 LiLM 阅读(332) 评论(0) 推荐(0)
摘要:NSString *urlStr;NSUrl *url = [NSURL URLWithString:urlStr];//缓存图片SDWebImageManager *manager = [SDWebImageManager sharedManager];if (![manager diskImag... 阅读全文
posted @ 2016-01-05 17:20 LiLM 阅读(1383) 评论(0) 推荐(0)