joseria/JASwipeCell

Auto-Sizing TableViewCells Not Working

Opened this issue · 2 comments

fabb commented

I have Auto-Sizing TableViewCells (new iOS 8 feature). Now I incorporated JASwipeCell, and the autosizing is broken. Seems like the topContentView does not behave correctly. I noticed that the topContentView is added to the UITableView itself, but for the autosizing to work, the content must be added to the contentView of the UITableView.

Hi there,

If you look at JASwipeCell, I am using the cell's contentView to display the buttons underneath. I then add another view to the cell, topContentView, over the existing contentView that will display any content for the cell.

UITableViewCell:
--> contentView (action buttons)
--> topContentView (labels, etc)

Try subclassing JASwipeCell and add all your content to it's topContentView instead of the contentView. I'll publish an example using a storyboard shortly. That might help.

Joseria,
Do you have a storyboard example already?