How to make swipeable UItableview header to show delete button as cells

I have a custom header that is a subclass UITableViewHeaderFooterView. I want to add a delete button to this header similar to UITableViewCell I went through the Internet and discovered some open source libraries for creating a swipeable cell that extend functionality UITableViewCellthat I really don’t need for a while,

Actually, I want to create a swipeable header View to show the delete button when deleting.

+4
source share
1 answer

There is no ready-made solution for this. However, we can still do this with our own delete button. The idea is to have the UIButtoncontents of the title in the view and animate it while scrolling through the title.

Ray Wenderlichs has a great tutorial for How to make a panel for viewing using a table with actions Use the same logic for UITableViewHeaderFooterView, and you're good to go.

0
source

All Articles