Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView editing animation duration

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

like image 775
volkersfreunde Avatar asked Apr 29 '11 08:04

volkersfreunde


2 Answers

In version 4.3.5 is 0.3 seconds

like image 123
albianto Avatar answered Oct 10 '22 01:10

albianto


From UIView.h

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

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

like image 4
David Dunham Avatar answered Oct 09 '22 23:10

David Dunham