Fixed problems with README.md

[tableView: cellForRowAtIndexPath] should return UITableViewCell instance
This commit is contained in:
Eric
2013-11-14 15:23:16 +08:00
parent d057cc39a2
commit ea36a0ccd9

View File

@@ -411,8 +411,8 @@ This is very handy for stuff like table cells:
```ruby
# In your controller that is a delegate for a UITableView
def tableView(table_view, cellForRowAtIndexPath: index_path)
cell = tableView.dequeueReusableCellWithIdentifier(CELL_IDENTIFIER) || begin
rmq.create(StoreCell, :store_cell, cell_identifier: CELL_IDENTIFIER)
cell = table_view.dequeueReusableCellWithIdentifier(CELL_IDENTIFIER) || begin
rmq.create(StoreCell, :store_cell, cell_identifier: CELL_IDENTIFIER).get
end
end