swift版的分页指示器

2015-02-27 0 772
swift版的分页指示器
//样式设置
viewPagerIndicator.setTitleColorForState(UIColor.blackColor(), state: UIControlState.Selected)//选中文字的颜色
viewPagerIndicator.setTitleColorForState(UIColor.blackColor(), state: UIControlState.Normal)//正常文字颜色
viewPagerIndicator.tintColor = UIColor.brownColor()//指示器和基线的颜色
viewPagerIndicator.showBottomLine = false//基线是否显示
viewPagerIndicator.autoAdjustSelectionIndicatorWidth = true//指示器宽度是按照文字内容大小还是按照count数量平分屏幕
viewPagerIndicator.indicatorDirection = .Top//指示器位置
viewPagerIndicator.indicatorHeight = viewPagerIndicator.bounds.height//指示器高度

遇见资源网 objective-c swift版的分页指示器 http://www.ox520.com/16120.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务