上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 设透明背景的时候直接设置RGB值 然后设置Opacity即可 阅读全文
posted @ 2017-03-22 16:36 Dingzhijie 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1. 加减月份 -(NSDate *)getPriousorLaterDateFromDate:(NSDate *)date withMonth:(int)month { NSDateComponents *comps = [[NSDateComponents alloc] init]; [comp 阅读全文
posted @ 2017-03-22 16:33 Dingzhijie 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 获取缓存文件的大小 由于缓存文件存在沙箱中,我们可以通过NSFileManager API来实现对缓存文件大小的计算。 计算单个文件大小 +(float)fileSizeAtPath:(NSString *)path{ NSFileManager *fileManager=[NSFileManage 阅读全文
posted @ 2017-03-22 16:32 Dingzhijie 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 文件夹 tmp 属于临时文件夹,不需要自己删除,系统会在应用退出后清空 文件夹 Library 下面的子文件 Caches 也是用来存储的,,但是Library 基本上不会被清除,但是在内存不足的情况下,可能会被清除. 文件夹 Documents 是开发者自己管理的文件目录,,操作性很大,,常用来作 阅读全文
posted @ 2017-03-22 16:31 Dingzhijie 阅读(444) 评论(0) 推荐(0) 编辑
摘要: //方法1 UIImage *imag1 = [UIImage imageNamed:@"image.png"]; //方法2 UIImage *image2 = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResou 阅读全文
posted @ 2017-03-22 16:30 Dingzhijie 阅读(274) 评论(0) 推荐(0) 编辑
摘要: ImageView UIViewContentModeScaleAspectFill 超出边界的问题 代码如下 [_photoView setClipsToBounds:Yes]; storyboard / Xib: 选中imageView后, 阅读全文
posted @ 2017-03-22 16:28 Dingzhijie 阅读(3244) 评论(0) 推荐(0) 编辑
摘要: 1. This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will caus 阅读全文
posted @ 2017-03-22 16:23 Dingzhijie 阅读(256) 评论(0) 推荐(0) 编辑
摘要: UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 200)]; [label setBackgroundColor:[UIColor blackColor]]; 阅读全文
posted @ 2017-03-22 16:13 Dingzhijie 阅读(3706) 评论(0) 推荐(0) 编辑
摘要: 1. 老子就是傻逼啊 居然忘了 p12 证书倒出来以后要双击安装一下 2. 环信处理用户的头像和昵称 model.message.ext就是消息的from 3. 修改消息记录的存储数目 4. 解决环信 兔斯基表情和 传入 ext 参数冲突问题 5. 调整兔斯基表情发送和接受时候的气泡高度 EaseC 阅读全文
posted @ 2017-03-22 16:01 Dingzhijie 阅读(834) 评论(0) 推荐(0) 编辑
摘要: Privacy - Photo Library Usage Description 访问相册 Privacy - Camera Usage Description 访问相机 Privacy - Location Usage Description 访问位置 Privacy - Location Al 阅读全文
posted @ 2017-03-22 15:56 Dingzhijie 阅读(449) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页