Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView reorder hides background

I have a UITableView that implements the reorder controls. It all works great with the exception of one thing. When I drag the cell, all UIView subviews are hidden. Is there a way to prevent that from happening? I tried to add a UIImage for the background (semi-transparent) to appear when you enter edit mode, but that caused another issue where the image was resized to the left side of the handles.

like image 897
Buyin Brian Avatar asked Dec 09 '11 21:12

Buyin Brian


1 Answers

You could set the backgroundView of UITableViewCell and add the subviews to the backgroundView: http://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/occ/instp/UITableViewCell/backgroundView

like image 64
user1104404 Avatar answered Oct 14 '22 05:10

user1104404