user754905
user754905

Reputation: 1809

UITableViewCell Editing Minus Sign Frame?

I want to move the minus sign to the right. How do I do that?

Thanks!

Upvotes: 0

Views: 583

Answers (1)

Cyrille
Cyrille

Reputation: 25144

I don't know if it's possible, but I'd start by looking into subclassing the UITableViewCell and overriding its layoutSubviews method.

But I don't believe you can, you only have access to the contentView, the accessoryView, the backgroundView, not the deleteConfirmationView. The closest thing you can find in UITableViewCell's reference is the boolean showingDeleteConfirmation.

So you could try subclassing the UITableViewCelland adding your own delete confirmation button where you want, by responding to willTransitionToState: when the new state is UITableViewCellStateShowingDeleteConfirmationMask.

Upvotes: 2

Related Questions