I would like to know if a cell is being dragged (via the grip on the right side when a UITableView is in editing mode). I would like to change the background while it is in that state.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no callback unfortunately, but since the default behaviour is to adjust the ‘alpha’ value of the UITableViewCell you can check for that in ‘- (void)layoutSubview’ of your UITableViewCell subclass.
Note that this is a bit of a hack. I noticed that this doesn’t work when the table view’s separatorStyle is set to ‘UITableViewCellSeparatorStyleNone’.