12207480 / TYPagerController

page scroll view and controller,simple,high custom,and have many tabBar styles,,support Objective-C and swift
MIT License
1.37k stars 231 forks source link

自定collectionBar Nib 必须放在mainBundle下面 #35

Closed aelam closed 7 years ago

aelam commented 7 years ago

这种写法只能通过mainBundle的xib处理 _cellContainXib 这个属性 可以直接改成cellNib 传入一个UINib

    if (_cellContainXib) {
        UINib *nib = [UINib nibWithNibName:_cellId bundle:nil];
        [collectionView registerNib:nib forCellWithReuseIdentifier:_cellId];
    }else {
        [collectionView registerClass:_cellClass forCellWithReuseIdentifier:_cellId];
    }
12207480 commented 7 years ago

v2.0 版本里没有这个了