上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: ****动画组// 核心动画都是假象,不能改变layer的真实属性的值// 展示的位置和实际的位置不同。实际位置永远在最开始位置#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) ... 阅读全文
posted @ 2015-09-06 17:33 iso 阅读(136) 评论(0) 推荐(0) 编辑
摘要: ***翻页效果#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@property (nonatomic, ass... 阅读全文
posted @ 2015-09-06 17:30 iso 阅读(163) 评论(0) 推荐(0) 编辑
摘要: ***#import "HMViewController.h"#define angle2radian(x) ((x) / 180.0 * M_PI)@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIImageV... 阅读全文
posted @ 2015-09-06 17:29 iso 阅读(186) 评论(0) 推荐(0) 编辑
摘要: *******#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIView *redView;@end@implementation HMViewContro... 阅读全文
posted @ 2015-09-06 17:26 iso 阅读(312) 评论(0) 推荐(1) 编辑
摘要: *******#import "HMViewController.h"@interface HMViewController ()@property (nonatomic, weak) CALayer *layer;@end@implementation HMViewController- (voi... 阅读全文
posted @ 2015-09-06 17:23 iso 阅读(222) 评论(0) 推荐(0) 编辑
摘要: ****#import "HMViewController.h"// 每秒秒针转6度#define perSecendA 6// 每分钟分针转6度#define perMinuteA 6// 每小时时针转6度#define perHourA 30// 每分钟时针转6度#define perMinut... 阅读全文
posted @ 2015-09-06 17:11 iso 阅读(631) 评论(0) 推荐(0) 编辑
摘要: ******隐式动画(手指拖拽Layer)#import "HMViewController.h"@interface HMViewController ()@property (nonatomic, weak) CALayer *layer;@end@implementation HMViewCo... 阅读全文
posted @ 2015-09-06 17:03 iso 阅读(155) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // 创建一个图层 CALayer *laye... 阅读全文
posted @ 2015-09-06 17:00 iso 阅读(125) 评论(0) 推荐(0) 编辑
摘要: ****动画效果- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [UIView animateWithDuration:1 animations:^{ // 旋转// ... 阅读全文
posted @ 2015-09-06 16:55 iso 阅读(1185) 评论(0) 推荐(0) 编辑
摘要: 略 阅读全文
posted @ 2015-09-01 17:24 iso 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页