Permalink
Browse files

Fixed check for hide animation delay to be greater then 0 and not dif…

…ferent from 0.
  • Loading branch information...
1 parent 4fd80a4 commit dc54fbd2d9d6bacaee660b6c6710f11c3f73fc4b @elpablo committed Mar 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 YRDropdownView/YRDropdownView.m
@@ -263,7 +263,7 @@ + (YRDropdownView *)showDropdownInView:(UIView *)view
[view addSubview:dropdown];
[dropdown show:animated];
- if (delay != 0.0) {
+ if (delay > 0.0) {
[dropdown performSelector:@selector(hideUsingAnimation:) withObject:[NSNumber numberWithBool:animated] afterDelay:delay+ANIMATION_DURATION];
}

0 comments on commit dc54fbd

Please sign in to comment.