mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-04-24 04:15:49 +08:00
Merge pull request #663 from clearsightstudio/bugfix/redpotion-table-cell
Add back in on_load for table cells
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user