Latest 1.1.4
Homepage https://github.com/CoderLinLee/LLSegmentViewController
License MIT
Platforms ios 8.0, requires ARC
Authors

效果参考

JXCategoryView

要求

  • iOS 8.0+
  • Xcode 9
  • Swift

使用CocoaPods安装

pod 'LLSegmentViewController'

自定义

只需两步就可完成自定义效果:(可参考项目内的自定义样式)

  • 1、继承LLSegmentBaseItemView;
  • 2、实现LLSegmentBaseItemView以下方法(有些方法可实现可不实现)
//1、设置标题
public func titleChange(title:String)
//2、滚动时会调用这个方法,percent的取值范围是0...1
public func percentChange(percent:CGFloat)
//3、返回当前ItemView的宽度
public func itemWidth() ->CGFloat
//设置Item的style样式
public func setSegmentItemViewStyle(itemViewStyle:LLSegmentItemViewStyle) 

效果预览

详情页效果预览

说明 Gif
个人中心头部放大 LLSegmentViewController
个人中心列表刷新 LLSegmentViewController
商品详情 LLSegmentViewController

指示器效果预览

说明 Gif
LineView固定宽度 LLSegmentViewController
LineView京东风格 LLSegmentViewController
LineView爱奇艺风格 LLSegmentViewController
LineView回旋风格 LLSegmentViewController
LineView与Item等宽 LLSegmentViewController
LineView分割线 LLSegmentViewController
LineView背景 LLSegmentViewController
LineView椭圆形 LLSegmentViewController
LineView椭圆形加阴影 LLSegmentViewController
LineView文字遮罩 LLSegmentViewController
LineView文字遮罩加背景 LLSegmentViewController
LineView文字遮罩加背景和阴影 LLSegmentViewController
LineView三角形 LLSegmentViewController
LineView小红点加数字 LLSegmentViewController
LineView点线效果 LLSegmentViewController
LineViewQQ红点 LLSegmentViewController

特殊效果预览

说明 Gif
LineView嵌套 LLSegmentViewController
LineView足球 LLSegmentViewController
LineView插入 LLSegmentViewController
LineView混合 LLSegmentViewController
LineView图片做背景 LLSegmentViewController
LineView图片文字 LLSegmentViewController

自定义Item效果预览

说明 Gif
LineView背景色渐变 LLSegmentViewController
LineView富文本 LLSegmentViewController
LineView网易新闻 LLSegmentViewController

自定义tabbar效果预览

说明 Gif
LineView微信 LLSegmentViewController
LineView微博 LLSegmentViewController
LineView图片做背景 LLSegmentViewController

邮箱:[email protected]

QQ群: 142649183

LLSegmentViewController

Latest podspec

{
    "name": "LLSegmentViewController",
    "version": "1.1.4",
    "summary": "u4e3bu6d41APPu5206u7c7bu5207u6362u6edau52a8u89c6u56fe",
    "homepage": "https://github.com/CoderLinLee/LLSegmentViewController",
    "license": "MIT",
    "authors": {
        "CoderLinLee": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/CoderLinLee/LLSegmentViewController.git",
        "tag": "1.1.4"
    },
    "source_files": "LLSegmentViewController/LLSegmentViewController/**/*",
    "requires_arc": true,
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This