Skip to content

Commit

Permalink
Let cell nib-files be found when this project is included in an app a…
Browse files Browse the repository at this point in the history
…s a framework
  • Loading branch information
jnutting committed Aug 9, 2017
1 parent 8fd1b1b commit a8fbf48
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ - (void)viewDidLoad {
[super viewDidLoad];

// Register cells and supplementary views
[self.collectionView registerNib:[UINib nibWithNibName:@"TBTProductCell" bundle:nil]
[self.collectionView registerNib:[UINib nibWithNibName:@"TBTProductCell" bundle:[NSBundle bundleForClass:[self class]]]
forCellWithReuseIdentifier:@"Product"];
[self.collectionView registerNib:[UINib nibWithNibName:@"TBTProductClusterHeaderCell" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"SectionHeader"];
[self.collectionView registerNib:[UINib nibWithNibName:@"TBTProductClusterHeaderCell" bundle:[NSBundle bundleForClass:[self class]]] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"SectionHeader"];

// Configure flow layout
UICollectionViewFlowLayout *layout = (id)[self collectionViewLayout];
Expand Down

0 comments on commit a8fbf48

Please sign in to comment.