Swipe actions buttons locations for long rows

半世苍凉 提交于 2019-12-12 01:54:26

问题


I am working on a project where I am implementing a swipe menu option for some additional actions. Everything works fine when the height of rows is relatively small and the user is in the middle of the row. But when the height increases, specially when it covers the whole page and the user has scrolled half way, it kind of breaks the design. Here are the screenshots for both actions.

[The image at the top shows the menu when the user is in the middle of the row. The second image show when he has scrolled half way][2]

My questions is, is there a way to move the actions button down with the page when the user scrolls so they are always visible?

NOTE: I am using the mgswipeTableCell lib.


回答1:


As you can see in the official project there are 3 available demo, each demo have a custom UITableViewCell cell based on MGSwipeTableCell methods. It can't be simple if you don't have convenience with UITableViewCell subclassing. You can try to following MGSwipeTableCell project instructions. What do you want is to make cell labels with more than 2 or 3 lines and with the buttons vertical center aligned.

The demo who is near your needs is Mail Demo



来源:https://stackoverflow.com/questions/36589673/swipe-actions-buttons-locations-for-long-rows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!