Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make more methods public, faster animation #10

Merged
merged 1 commit into from

2 participants

@piotrek21

No description provided.

@emilwojtaszek emilwojtaszek merged commit 556fc24 into emilwojtaszek:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2013
  1. Make more methods public

    Piotr Adamczak authored
This page is out of date. Refresh to see the latest.
View
2  AURosetteView/RosetteView/AURosetteView.h
@@ -36,4 +36,6 @@
- (void)setOn:(BOOL)on animated:(BOOL)animated;
- (void)toggleWithAnimation:(BOOL)animated;
+- (void)addImages;
+- (void)addLeaves;
@end
View
6 AURosetteView/RosetteView/AURosetteView.m
@@ -177,7 +177,7 @@ - (void)addImages {
imageLayer.anchorPoint = CGPointMake(0.5f, 0.5f);
imageLayer.position = CGPointMake(CGRectGetMidX(self.bounds), CGRectGetMidY(self.bounds));
imageLayer.transform = CATransform3DMakeScale(0.01f, 0.01f, 1.0f);
- imageLayer.opacity = 0.6f;
+ imageLayer.opacity = 1.0f;
[self.layer addSublayer:imageLayer];
[_imagesLayers addObject:imageLayer];
@@ -288,7 +288,7 @@ - (void)expand {
[leafAnimation setToValue:[NSValue valueWithCATransform3D:transform]];
[leafAnimation setFillMode:kCAFillModeForwards];
[leafAnimation setRemovedOnCompletion: NO];
- [leafAnimation setDuration:0.6f];
+ [leafAnimation setDuration:0.4f];
layer = [_leavesLayers objectAtIndex:i];
[layer addAnimation:leafAnimation forKey:@"expand"];
@@ -310,7 +310,7 @@ - (void)expand {
[group setAnimations:[NSArray arrayWithObjects:scaleImageAnimation, positionImageAnimation, nil]];
[group setFillMode:kCAFillModeForwards];
[group setRemovedOnCompletion: NO];
- [group setDuration:0.3f];
+ [group setDuration:0.2f];
[group setBeginTime:CACurrentMediaTime () + 0.27f];
layer = [_imagesLayers objectAtIndex:i];
Something went wrong with that request. Please try again.