13

Does any one know how long the animation

- (void)setEditing:(BOOL)editing animated:(BOOL)animated;

in the UITableViewCell takes? I´m testing with 0.5 seconds but i´d rather like to use a constant from the Framework somthing like UITableViewCellEditingAnimationDuration

nhgrif
  • 61,578
  • 25
  • 134
  • 173
volkersfreunde
  • 1,095
  • 1
  • 12
  • 22

2 Answers2

10

In version 4.3.5 is 0.3 seconds

albianto
  • 4,092
  • 2
  • 36
  • 54
  • How did you find out? Is there any constant which can be used? I have the same problem and I don't want to update my app every time Apple changes the animation Duration of some things. thx in advance. Mav – Maverick1st Sep 07 '11 at 11:23
  • 1
    I think apple won't change it. I did some tests and 0.3 was the better duration for animations I found. – albianto Sep 07 '11 at 12:24
4

From UIView.h

+ (void)setAnimationDuration:(NSTimeInterval)duration;              // default = 0.2

and I found 0.2 s indeed seemed to match things pretty well.

David Dunham
  • 8,139
  • 3
  • 28
  • 41