Use subscripting for item class mapping

This commit is contained in:
Roman Efimov
2013-06-18 11:03:33 -05:00
parent 2222b4370e
commit c46aa839eb
3 changed files with 14 additions and 1 deletions

View File

@@ -27,7 +27,7 @@
// Map item to a cell
//
[_manager registerClass:@"ListImageItem" forCellWithReuseIdentifier:@"ListImageCell"];
_manager[@"ListImageItem"] = @"ListImageCell"; // which is the same as [_manager registerClass:@"ListImageItem" forCellWithReuseIdentifier:@"ListImageCell"];
// Set some UITableView properties
//