Skip to content

Commit

Permalink
Added animation curve to tag popover deletion, change tag delete anim…
Browse files Browse the repository at this point in the history
…ation to moving off screen since scaling is broken.
  • Loading branch information
EddyBorja committed Apr 9, 2014
1 parent 0c48dad commit 1ce5d1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions EBPhotoPagesController/EBPhotoPagesController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1463,10 +1463,12 @@ - (void)deletePhotoAtIndex:(NSInteger)index
- (void)deleteTagPopover:(EBTagPopover *)tagPopover inPhotoAtIndex:(NSInteger)index
{
[UIView animateWithDuration:0.5f
delay:0.05f
options:UIViewAnimationOptionCurveEaseInOut
animations:^{
tagPopover.transform = CGAffineTransformMakeScale(0.0, 0.0);
// tagPopover.transform = CGAffineTransformMakeTranslation(50.0f, 500.0f);
// tagPopover.alpha = 0.0f;
// tagPopover.transform = CGAffineTransformMakeScale(0.0, 0.0);
[tagPopover setTransform:CGAffineTransformMakeTranslation(0.0f, 400.0f)];
[tagPopover setAlpha:0.0f];
} completion:^(BOOL finished) {
[tagPopover removeFromSuperview];
}];
Expand Down

0 comments on commit 1ce5d1a

Please sign in to comment.