Closed iron93 closed 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);
可以 看看TabPagerControllerDemoController.m demo
之前用的是1.0的版本 现在更新到2.0了 标题栏还是有问题 没选中的title的fontsize大小是0 选中的正常 动画是从没有变大到显示正常
再调用一次reloaddata好了 还有一个问题 能让控制器初始化的时候就切到某一个子控制器吗
还没有
本身是一个viewController。
// _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);