designatednerd / DNSSwipeableTableCell

UITableViewCell subclass to add multiple buttons to a swipe-under menu like iOS 7 Mail.
MIT License
175 stars 24 forks source link

Fixed issue when used in table view with sections #17

Closed bogdanbeczkowski closed 9 years ago

bogdanbeczkowski commented 9 years ago

When used in table view with sections and section headers UITableViewCell contentView gets 0.5 point cut off from the bottom. So if cell height is 80.0 points the contentView will be 79.5 points. The button height will be 80.0 and the bottom 0.5 points will be visible after swiping back. To fix it button should take it's frame height from contentView.frame rather that from view.frame.

designatednerd commented 9 years ago

Ooh, good catch - thanks for submitting a patch!