mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-06-19 18:24:13 +08:00
Use subscripting for item class mapping
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user