Skip to content

Commit

Permalink
Merge pull request #70 from revolter/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
ibireme authored Jun 25, 2017
2 parents 6a756e9 + 614cfb3 commit 61ca179
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Usage
// File: ani@3x.gif
UIImage *image = [YYImage imageNamed:@"ani.gif"];
UIImageView *imageView = [[YYAnimatedImageView alloc] initWithImage:image];
[self.view addSubView:imageView];
[self.view addSubview:imageView];


###Display frame animation
Expand All @@ -42,7 +42,7 @@ Usage
NSArray *times = @[@0.1, @0.2, @0.1];
UIImage *image = [YYFrameImage alloc] initWithImagePaths:paths frameDurations:times repeats:YES];
UIImageView *imageView = [YYAnimatedImageView alloc] initWithImage:image];
[self.view addSubView:imageView];
[self.view addSubview:imageView];

###Display sprite sheet animation

Expand All @@ -68,7 +68,7 @@ Usage
YYAnimatedImageView *imageView = [YYAnimatedImageView new];
imageView.size = CGSizeMake(img.size.width / 8, img.size.height / 12);
imageView.image = sprite;
[self.view addSubView:imageView];
[self.view addSubview:imageView];

###Animation control

Expand Down Expand Up @@ -221,7 +221,7 @@ YYImage: 功能强大的 iOS 图像框架。<br/>
// 文件: ani@3x.gif
UIImage *image = [YYImage imageNamed:@"ani.gif"];
UIImageView *imageView = [[YYAnimatedImageView alloc] initWithImage:image];
[self.view addSubView:imageView];
[self.view addSubview:imageView];


###播放帧动画
Expand All @@ -231,7 +231,7 @@ YYImage: 功能强大的 iOS 图像框架。<br/>
NSArray *times = @[@0.1, @0.2, @0.1];
UIImage *image = [YYFrameImage alloc] initWithImagePaths:paths frameDurations:times repeats:YES];
UIImageView *imageView = [YYAnimatedImageView alloc] initWithImage:image];
[self.view addSubView:imageView];
[self.view addSubview:imageView];

###播放 sprite sheet 动画

Expand All @@ -257,7 +257,7 @@ YYImage: 功能强大的 iOS 图像框架。<br/>
YYAnimatedImageView *imageView = [YYAnimatedImageView new];
imageView.size = CGSizeMake(img.size.width / 8, img.size.height / 12);
imageView.image = sprite;
[self.view addSubView:imageView];
[self.view addSubview:imageView];

###动画播放控制

Expand Down

0 comments on commit 61ca179

Please sign in to comment.