File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,22 @@ - (void)applyChanges:(void (^)(void))changes
161161 insertAnimation : (UITableViewRowAnimation)insertAnimation
162162 removeAnimation : (UITableViewRowAnimation)removeAnimation
163163{
164- _useCustomAnimations = YES ;
165- _customReloadAnimation = reloadAnimation;
166- _customInsertAnimation = insertAnimation;
167- _customRemoveAnimation = removeAnimation;
168-
169- changes ();
170-
171- _useCustomAnimations = NO ;
164+ if (_useCustomAnimations)
165+ {
166+ // Override emdded calls
167+ changes ();
168+ }
169+ else
170+ {
171+ _useCustomAnimations = YES ;
172+ _customReloadAnimation = reloadAnimation;
173+ _customInsertAnimation = insertAnimation;
174+ _customRemoveAnimation = removeAnimation;
175+
176+ changes ();
177+
178+ _useCustomAnimations = NO ;
179+ }
172180}
173181
174182#pragma mark - Convenience methods
You can’t perform that action at this time.
0 commit comments