I am using UIContextualAction
to implement swipe to delete functionality for UITableViewCell
. I use + (instancetype)contextualActionWithStyle:(UIContextualActionStyle)style title:(nullable NSString *)title handler:(UIContextualActionHandler)handler
method to construct UIContextualAction
and later set an image to it using setImage:
property.
However when I run this code and try to swipe delete, only image is shown in the menu. The title is missing. When I comment out the setImage
property, title is displayed. Why is this so? Am I missing something in the implementation or is this a bug with Apple?