From f59bc0bd9ad266b1213847f77f4d5d6b25d50419 Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Sun, 12 Jan 2025 12:49:39 -0600 Subject: [PATCH] Update YTPivotBarReorder.m --- Sources/YTPivotBarReorder.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/YTPivotBarReorder.m b/Sources/YTPivotBarReorder.m index 469c632126..2992aec9ca 100644 --- a/Sources/YTPivotBarReorder.m +++ b/Sources/YTPivotBarReorder.m @@ -45,8 +45,7 @@ - (void)loadActivePivotTabs { 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 @@ - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSe - (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;