ColinEberhardt / VCTransitionsLibrary

A collection of iOS7 animation controllers and interaction controllers, providing flip, fold and all kinds of other transitions.
Other
4.55k stars 617 forks source link

Fixed the issue for gesture's being added twice #36

Closed cyndibaby905 closed 8 years ago

cyndibaby905 commented 9 years ago

1.Fixed the issue for gesture's being added twice: When a push behaviour happens, the toVC add a gesture; when a pop behaviour happens, the toVC should remove the added gesture first, then add a new one. The old code just added gesture twice.

2.Removed unnecessary variable and dealloc method: UIView will remove all its gestures when dealloc automatically, so it's no need to remove the added gestures. Furthermore, the CEBaseInteractionController is used as a singleton, its dealloc method will never get called.

ColinEberhardt commented 8 years ago

Great fixes - thanks