mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Update YTPivotBarReorder.m
This commit is contained in:
parent
5f6c31a4ab
commit
f59bc0bd9a
1 changed files with 2 additions and 3 deletions
|
|
@ -45,8 +45,7 @@
|
|||
YTIPivotBarRenderer *pivotBarRenderer = [guideRenderers pivotBarRenderer];
|
||||
for (YTIPivotBarSupportedRenderers *renderer in [pivotBarRenderer itemsArray]) {
|
||||
YTIPivotBarItemRenderer *itemRenderer = [renderer pivotBarItemRenderer];
|
||||
NSString *title = itemRenderer.title;
|
||||
[activeTabs addObject:title];
|
||||
[activeTabs addObject:itemRenderer];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -61,7 +60,7 @@
|
|||
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
|
||||
UILabel *label = [[UILabel alloc] initWithFrame:cell.contentView.bounds];
|
||||
label.text = self.pivotBarItems[indexPath.row];
|
||||
label.text = [self.pivotBarItems[indexPath.row] string];
|
||||
label.textAlignment = NSTextAlignmentCenter;
|
||||
[cell.contentView addSubview:label];
|
||||
return cell;
|
||||
|
|
|
|||
Loading…
Reference in a new issue