UITableViewCell delete button gets covered up

后端 未结 12 1897
闹比i
闹比i 2020-12-01 08:55

UPDATE:

Thanks to information from \"Evgeny S\" I\'ve been able to determine that what is covering up the delete button is the cell background. I had the following f

12条回答
  •  [愿得一人]
    2020-12-01 08:58

    Cleaner, General Solution

    Assuming an iOS7 only app, with a technique similar to that posted by chris above, I believe the approach here: https://stackoverflow.com/a/19416870/535054 is going to be cleaner.

    In this approach, you don't need to subclass your backgroundView, which could be different for different cells.

    Place the code in the answer I've linked to above, in the root of your custom table cell hierarchy, and all of your table cells (that inherit from it), get the fix whenever they use the backgroundView or selectedBackgroundView properties.

提交回复
热议问题