https://github.com/YouXianMing
上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 85 下一页
摘要: 用 Core Animation 实现图片的碎片化参考书籍:效果如下:原理其实非常简单哦:)。1. 创建一个CALayer,使用其 contents 属性来装载一张图片(获取图片的CGImage)2. 根据frame值裁剪图片,然后将裁剪的图片赋给你创建的更小的CALayer3. 实现这些更小的CA... 阅读全文
posted @ 2014-06-02 08:20 YouXianMing 阅读(945) 评论(1) 推荐(0) 编辑
摘要: SCRecorderhttps://github.com/rFlex/SCRecorderAn easy Vine/Instagram like video and/or audio recorder class with Core Image filters support.类似于 Vine/In... 阅读全文
posted @ 2014-06-01 22:35 YouXianMing 阅读(1269) 评论(1) 推荐(0) 编辑
摘要: About Core ImageCore Image is an image processing and analysis technology designed to provide near real-time processing forstill and video images. It ... 阅读全文
posted @ 2014-05-31 16:11 YouXianMing 阅读(514) 评论(0) 推荐(0) 编辑
摘要: OpenGLES渲染OpenGLES使用GPU渲染图片,不占用CPU,但其使用还是挺复杂的.先用OpenGLES显示一张图片://// ShowViewController.m// OpenGLES//// Copyright (c) 2014年 Y.X. All rights reserve... 阅读全文
posted @ 2014-05-30 11:24 YouXianMing 阅读(4461) 评论(0) 推荐(0) 编辑
摘要: 封装CIImage实现实时渲染CIImage属于CoreImage里面的东东,用来渲染图片的,为什么要封装它呢?其实很简单,封装好之后使用更加方便.如果直接使用CIImage渲染图片,使用的流程如下:只要你仔细研究一下CIImage,你会发现,filter部分与context部分是彼此分离的,con... 阅读全文
posted @ 2014-05-29 09:44 YouXianMing 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: UINavigationController与UITabBarController相关问题UINavigationController与UITabBarController混用是非常常见的,有时候会遇到UINavigationController推出(push)出controller后隐藏UITab... 阅读全文
posted @ 2014-05-28 13:24 YouXianMing 阅读(657) 评论(2) 推荐(1) 编辑
摘要: 使用FontAwesomehttps://github.com/PrideChung/FontAwesomeKit为什么要使用FontAwesome呢,其实,它的字体就是矢量图,无论是放大还是缩小都不失真的矢量图哦.1. 下载源码,导入文件夹FontAwesomeKit,然后引入头文件FontAwe... 阅读全文
posted @ 2014-05-28 09:59 YouXianMing 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: CAGradientLayer实现图片渐变透明效果要实现的效果如下:源码://// RootViewController.m// CAGradientLayer//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootVi... 阅读全文
posted @ 2014-05-27 14:01 YouXianMing 阅读(4093) 评论(0) 推荐(0) 编辑
摘要: 将NSString变成贝塞尔曲线https://github.com/aderussell/string-to-CGPathRefNSString中的字符串是可以通过CoreText框架将其转换成贝塞尔曲线的.源码://// RootViewController.m// StringPath//... 阅读全文
posted @ 2014-05-27 10:20 YouXianMing 阅读(926) 评论(0) 推荐(0) 编辑
摘要: CAGradientLayer渐变颜色动画或许你用过CAGradientLayer,你知道他是用于渐变颜色的,但你是否直到,CAGradientLayer的渐变颜色是可以动画的哦.源码://// RootViewController.m// CAGradientLayer//// Copyri... 阅读全文
posted @ 2014-05-27 09:23 YouXianMing 阅读(1916) 评论(1) 推荐(0) 编辑
上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 85 下一页