摘要: 1、加载gif NSString *full_path = @"/Users/sdr_mac/Desktop/1f914.gif" NSData *image_data = [NSData dataWithContentsOfFile:full_path]; UIImage *gc_Image = 阅读全文
posted @ 2020-11-12 23:36 CH520 阅读(1959) 评论(0) 推荐(0) 编辑
摘要: // 添加 UIImage 的分类 ResizeUIImage @implementation UIImage (ResizeUIImage) /** 重绘图片大小 @param size 要得到的图片的尺寸大小 @return 得到的指定尺寸大小的图片 */ - (UIImage *)resize 阅读全文
posted @ 2020-11-12 23:13 CH520 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1、Assets.xcassets Assets.xcassets 在 App 打包后,以 Assets.car 文件的形式出现在 Bundle 中。其作用在于: 自动识别 @2x,@3x 图片,对内容相同但分辨率不同的图片统一管理。 可以对图片进行剪裁和拉伸处理。 根据是否将创建好的对象缓存入系统 阅读全文
posted @ 2020-11-12 22:59 CH520 阅读(226) 评论(0) 推荐(0) 编辑