Merge pull request #663 from clearsightstudio/bugfix/redpotion-table-cell

Add back in on_load for table cells
This commit is contained in:
Jamon Holmgren
2015-04-02 16:53:40 -07:00

View File

@@ -155,9 +155,9 @@ module ProMotion
new_cell.extend(PM::TableViewCellModule) unless new_cell.is_a?(PM::TableViewCellModule)
new_cell.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin
new_cell.clipsToBounds = true # fix for changed default in 7.1
new_cell.send(:on_load) if new_cell.respond_to?(:on_load)
new_cell
end
table_cell.setup(data_cell, self) if table_cell.respond_to?(:setup)
table_cell.send(:on_reuse) if !new_cell && table_cell.respond_to?(:on_reuse)
table_cell