Latest 1.1.2
Homepage https://github.com/jingcaich/CJSegmentControl
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

WeiBo-Segment-Control

模仿微博iOS App的选项滑动功能(觉得比较有意思,就花了一个下午做了下)

Cocoapdos

pod ‘CJSegmentControl’

Update history

version 1.1.2 => 增加demo, 并增加滚动优化, 新增渐变indicator属性的支持

Sample

image

Usage

/// 传入对应的数据即可 1.1.2增加每个选项的宽度 并关联UIScrollView
- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray<NSString *>  *)titles selectionWidth:(CGFloat)selectionWidth scr:(UIScrollView *)src;
/// 1.1.2新增, 不需要关联UIScrollView
- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray<NSString *>  *)titles selectionWidth:(CGFloat)selectionWidth;

最后

欢迎各位使用,有问题欢迎pr或者issue, qq:519475439 蔡晶

Latest podspec

{
    "name": "CJSegmentControl",
    "summary": "A segmentControl where Weibo using.",
    "version": "1.1.2",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "jingcaich": "[email protected]"
    },
    "social_media_url": "http://s.weibo.com/weibo/_Edward__C&Refer=STopic_box",
    "homepage": "https://github.com/jingcaich/CJSegmentControl",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/jingcaich/CJSegmentControl.git",
        "tag": "1.1.2"
    },
    "requires_arc": true,
    "source_files": "SegmentControl/*.{h,m}",
    "public_header_files": "SegmentControl/*.{h}",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This