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

设置了delegate以后 标签的title就不见了 #50

Closed iron93 closed 7 years ago

iron93 commented 7 years ago

本身是一个viewController。

[self addChildViewController:self.pagerController];
[self.view addSubview:_pagerController.view];
_pagerController.view.frame = self.view.bounds;
_arrTitle = [[NSArray alloc]initWithObjects:@"最新",@"最热", nil];

    _pagerController = [[TYTabButtonPagerController alloc]init];

// _pagerController.delegate = self; _pagerController.dataSource = self; _pagerController.adjustStatusBarHeight = YES; _pagerController.cellSpacing = 2KScreeScasle; _pagerController.cellEdging = 10KScreeScasle; _pagerController.cellWidth = 70KScreeScasle; _pagerController.normalTextFont = [UIFont systemFontOfSize:15KScreeScasle]; _pagerController.selectedTextFont = [UIFont systemFontOfSize:15KScreeScasle]; _pagerController.barStyle = TYPagerBarStyleProgressBounceView; _pagerController.progressColor = UIColorFromRGB(0xfc3047); _pagerController.progressWidth = 40KScreeScasle; _pagerController.selectedTextColor = UIColorFromRGB(0xfc3047);

12207480 commented 7 years ago

可以 看看TabPagerControllerDemoController.m demo

iron93 commented 7 years ago

之前用的是1.0的版本 现在更新到2.0了 标题栏还是有问题 没选中的title的fontsize大小是0 选中的正常 动画是从没有变大到显示正常

iron93 commented 7 years ago

再调用一次reloaddata好了 还有一个问题 能让控制器初始化的时候就切到某一个子控制器吗

12207480 commented 7 years ago

还没有