joseria / JASwipeCell

iOS 8 Mail Inspired. A UITableViewCell subclass that displays customizable left or right buttons that are revealed as the user swipes the cell in either direction. The edge-most buttons will pin to the container view and will execute an event similar to how the delete/archive button work in IOS 8 mail.
MIT License
367 stars 53 forks source link

Fixes alignment when tableViewCell accessories are set. #12

Closed LavaSlider closed 9 years ago

LavaSlider commented 9 years ago

Note that this just fixes the button display but not hiding, sliding or disabling of the accessory. In the Apple code the accessory moves back and forth with the cell but I don’t know if that is possible. This means that trying to touch the button displayed at the far right, under an accessory, does not work (yet).

There is also a problem that the topContentView is a little smaller when there is an accessory defined. This leaves a gap between the topContentView and the right buttons when they are exposed. This should be easy to fix by adjusting the topContentView width up to the cell width as it is moved left.