Skip to content

Commit

Permalink
Make things compatible with iOS6
Browse files Browse the repository at this point in the history
  • Loading branch information
andygeers committed Feb 27, 2015
1 parent 115750c commit aef32ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Coach Marks/DDCircleView.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ - (void)animateSwipe
self.transform = CGAffineTransformConcat(translateRight, scale);
}
self.alpha = 0.0f;
[UIView animateKeyframesWithDuration:0.6 delay:0.3 options:0
[UIView animateWithDuration:0.6 delay:0.3 options:0
animations:^{
// Fade In
if (self.swipeDirection == kCircleSwipeLeftToRight) {
Expand Down
6 changes: 3 additions & 3 deletions Coach Marks/DDCoachMarksView.m
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ - (void)animateNextBubble

// remove previous bubble
if (self.bubble) {
[UIView animateKeyframesWithDuration:0.3 delay:0.0 options:0
[UIView animateWithDuration:0.3 delay:0.0 options:0
animations:^{
self.bubble.alpha = 0.0;
} completion:nil];
Expand All @@ -277,7 +277,7 @@ - (void)animateNextBubble
[self addSubview:self.bubble];

// fade in & bounce animation
[UIView animateKeyframesWithDuration:0.8 delay:0.3 options:0
[UIView animateWithDuration:0.8 delay:0.3 options:0
animations:^{
self.bubble.alpha = 1.0;
[self.bubble animate];
Expand All @@ -297,7 +297,7 @@ - (void)cleanup {
__weak DDCoachMarksView *weakSelf = self;

// animate & remove from super view
[UIView animateKeyframesWithDuration:0.6 delay:0.3 options:0
[UIView animateWithDuration:0.6 delay:0.3 options:0
animations:^{
self.alpha = 0.0f;
self.animatingCircle.alpha = 0.0f;
Expand Down

0 comments on commit aef32ec

Please sign in to comment.