Skip to content

Instantly share code, notes, and snippets.

@GantMan
Last active August 29, 2015 13:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save GantMan/10181191 to your computer and use it in GitHub Desktop.
Save GantMan/10181191 to your computer and use it in GitHub Desktop.
RMQ switching from Default to Subtitle Table Cell
def tableView(table_view, cellForRowAtIndexPath: index_path)
data_row = @data[index_path.row]
#cell = table_view.dequeueReusableCellWithIdentifier(ALERTS_CELL_ID) || begin
# rmq.create(AlertsCell, :alerts_cell, reuse_identifier: ALERTS_CELL_ID).get
#end
cell ||= AlertsCell.alloc.initWithStyle(UITableViewCellStyleSubtitle, reuseIdentifier:ALERTS_CELL_ID).autorelease
cell = rmq.build(cell, :alerts_cell).get
cell.update(data_row)
cell
end
def tableView(table_view, cellForRowAtIndexPath: index_path)
data_row = @data[index_path.row]
cell = table_view.dequeueReusableCellWithIdentifier(ALERTS_CELL_ID) || begin
rmq.create(AlertsCell, :alerts_cell, reuse_identifier: ALERTS_CELL_ID).get
end
cell.update(data_row)
cell
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment