Skip to content

Commit

Permalink
Fix for Swft cell class
Browse files Browse the repository at this point in the history
  • Loading branch information
orkenstein committed Aug 31, 2015
1 parent ff97c1a commit ec0295a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DTCollectionViewManager/DTCollectionViewFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ - (void)registerCellClass:(Class)cellClass forModelClass:(Class)modelClass
- (void)registerNibNamed:(NSString *)nibName forCellClass:(Class)cellClass forModelClass:(Class)modelClass
{
NSParameterAssert([self nibExistsWithNibName:nibName]);


NSString * cellClassString = [DTRuntimeHelper classStringForClass:cellClass];

[[self.delegate collectionView] registerNib:[UINib nibWithNibName:nibName bundle:[NSBundle mainBundle]]
forCellWithReuseIdentifier:[DTRuntimeHelper classStringForClass:cellClass]];
self.cellMappings[[DTRuntimeHelper modelStringForClass:modelClass]] = NSStringFromClass(cellClass);
self.cellMappings[[DTRuntimeHelper modelStringForClass:modelClass]] = cellClassString;
}

- (void)registerSupplementaryClass:(Class)supplementaryClass
Expand Down

0 comments on commit ec0295a

Please sign in to comment.