lib/ProMotion/table/data/table_data.rb in ProMotion-1.1.0.rc1 vs lib/ProMotion/table/data/table_data.rb in ProMotion-1.1.0
- old
+ new
@@ -71,10 +71,12 @@
self.search_string = false
self.original_search_string = false
end
def set_data_cell_defaults(data_cell)
- data_cell[:cell_style] ||= UITableViewCellStyleDefault
+ data_cell[:cell_style] ||= begin
+ data_cell[:subtitle] ? UITableViewCellStyleSubtitle : UITableViewCellStyleDefault
+ end
data_cell[:cell_class] ||= PM::TableViewCell
data_cell[:cell_identifier] ||= build_cell_identifier(data_cell)
data_cell[:accessory] = {
view: data_cell[:accessory],