mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Use bhackel’s solution (YTPivotBarReorder.m)
Uses some of “Hide Home Tab” code. I believe this might work.
This commit is contained in:
parent
35b7d49d37
commit
e3aa792f6e
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#import <YouTubeHeader/YTIPivotBarRenderer.h>
|
||||
#import <YouTubeHeader/YTIPivotBarSupportedRenderers.h>
|
||||
#import <YouTubeHeader/YTIPivotBarItemRenderer.h>
|
||||
#import <YouTubeHeader/YTIIcon.h>
|
||||
#import <YouTubeHeader/YTAssetLoader.h>
|
||||
|
||||
@interface YTPivotBarReorder ()
|
||||
|
||||
|
|
@ -71,6 +71,7 @@
|
|||
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
|
||||
UIImageView *iconView = [[UIImageView alloc] initWithFrame:cell.contentView.bounds];
|
||||
YTIPivotBarItemRenderer *itemRenderer = self.pivotBarItems[indexPath.row];
|
||||
iconView.image = [YTAssetLoader loadImageWithIdentifier:itemRenderer.icon.identifier];
|
||||
iconView.tintColor = [UIColor whiteColor];
|
||||
iconView.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[cell.contentView addSubview:iconView];
|
||||
|
|
|
|||
Loading…
Reference in a new issue