摘要: Core Animation 提供了一套非常科学的动画类,我们能够在程序中使用。CAAnimation 是所以动画类的虚基类。它遵循CAMediaTiming 协议,CAMediaTiming 协议为动画提供了简单的持续时间(duration)、数度(speed)、重复次数(repeat count... 阅读全文
posted @ 2014-11-12 21:30 shuleihen 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 在《CALayer 自定义属性绘制动画》中讲解通过CALayer 自定义动画属性绘制圆,使用CABasicAnimation添加绘制动画,下面通过CGPath绘制圆使用CAKeyframeAnimation添加绘制动画UIBezierPath *path = [UIBezierPathbezierP... 阅读全文
posted @ 2014-11-10 16:36 shuleihen 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 创建CircleLayer继承CALayer,添加新属性angle。@interfaceCircleLayer :CALayer@property(nonatomic,assign)CGFloatangle;@end覆盖父类方法,添加新的属性动画键值,返回YES表示给定的属性发生变化时导致layer... 阅读全文
posted @ 2014-11-10 16:06 shuleihen 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 一、iOS6之后UIViewController 旋转处理1、view controller 是否支持自动旋转- (BOOL)shouldAutorotate;2、view controller 支持哪几种- (NSUInteger)supportedInterfaceOrientations;在U... 阅读全文
posted @ 2014-09-20 23:25 shuleihen 阅读(160) 评论(0) 推荐(0) 编辑
摘要: c/c++ 头文件引用问题include 引用编译器的类库路径下的头文件include “” 引用工程目录的相对路径的头文件include 是编译指令,在编译时,编译器会将相对路径替换成绝对路径,因此,头文件绝对路径=搜索路径+相对路径。Xcode Build Settings 下 Search ... 阅读全文
posted @ 2014-07-07 21:05 shuleihen 阅读(4301) 评论(0) 推荐(0) 编辑