Skip to content

Commit

Permalink
Merge pull request #11 from orkenstein/master
Browse files Browse the repository at this point in the history
Fix for Swft cell class
  • Loading branch information
DenTelezhkin committed Sep 1, 2015
2 parents ff97c1a + ec0295a commit 59a326f
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 59a326f

Please sign in to comment.