VCScrollTabBar
VCScrollTabBar 是一个简单的 iOS (Obj-C) ScrollTabBar 组件
带中心指示器的 VCScrollTabBar
带底部指示器的 VCScrollTabBar
使用方法
只需将 'ScrollViewTabBar' 文件夹拖动到您的项目中。
底部指示器
VCScrollTabBarConfig *config = [VCScrollTabBarConfig defaultConfig];
VCScrollTabBarConfig *scrollTabBar = [[VCScrollTabBar alloc] init];
[scrollTabBar configureTitleInfos:self.titleInfos config:config scrollView:self.scrollView tarBarDelegate:self];
中间指示器
VCScrollTabBarConfig *config = [VCScrollTabBarConfig defaultConfig];
config.showCenterIndicatorView = YES;
config.showBottomIndicatorView = NO;
VCScrollTabBarConfig *scrollTabBar = [[VCScrollTabBar alloc] init];
[scrollTabBar configureTitleInfos:self.titleInfos config:config scrollView:self.scrollView tarBarDelegate:self];
VCScrollTabBar配置
// You can adjust the config to change scrollTabBar style.
VCScrollTabBarConfig *config = [VCScrollTabBarConfig defaultConfig];
//Center indicator view color
config.centerIndicatorViewColor
//Show hide the center indicator view
config.showCenterIndicatorView;
//BottomIndicatorView color.
config.bottomIndicatorViewColor;
//Selected tabBar button title font size.
config.buttonTitleMaxFont
...
功能
- 易于使用,只需调用 configureTitleInfos:config:scrollView:navigatorDelegate
- 适用于所有尺寸(iPhone / iPad)
- 支持多种样式指示器
许可证
VCScrollTabBar采用MIT许可证。有关更多信息,请参阅LICENSE文件。