CEWendel/SWTableViewCell — pull request #89 by Alex9779 (2014-02-14 22:55:25+00:00)
Title: Fix for display issue and more Apple like style

Hi,

this is a fix for a problem when using SWTableViewCell with buttons on only one side.
I am using SWTableViewCell in my app always even when I only want to show a delete button because I want to have a seamless user experience.
Short example: you have a SWTableVIewCell with one button on the right side and none on the left and then swipe that cell very fast to the right the content just bounces. When you then try to scroll the same cell to the left side the cell shows a very short time the button but pops back. This is very hard to reproduce in the simulator on a device it is a bit easier but does not really appear every time.
The problem is that the fast dragging triggers some methods and the end is that "kCellStateLeft" is set even there are not buttons on the left side and the cell still shows its center.
My solution is simple, I just return right away if the target content offset is "(0, 0)".

In addition I added the cell not to bounce if there are no buttons. This is just like the cells in the Apple apps do it...

Regards,
Alexander