-
-
Save chrise86/f623d6988f45f6e15a25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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