Latest 0.0.1
Homepage https://github.com/JoslynWu/CSChannelLabelView-OC
License Apache License
Platforms ios 8.0, requires ARC
Authors

一个轻量的文字频道View。多个频道可滚动,少量频道可适配间距。
本版本为Objective-C版

Swift版入口:CSChannelLabelView

效果图

CSChannelLabelView-OC

怎么接入

直接将Sources文件夹拖入工程中。

怎么用

  • 建议属性设置完后,再调用刷新方法。
- (void)refreshTitles:(NSArray<NSString *> *)titles;
  • 下面方法一般在代码调用时调用,例如滚动UICollectionView时需要title同时滚动
- (void)selectChannelWithIndex:(NSInteger)index animated:(BOOL)flag;
  • 选择指示器支持多种动画类型
typedef NS_ENUM(NSInteger, CSIndicatorAnimationType){
    CSIndicatorAnimationTypeNone,       // 无动画
    CSIndicatorAnimationTypeSlide,      // 滑行动画
    CSIndicatorAnimationTypeCrawl,      // 爬行动画
    CSIndicatorAnimationTypeRubber,     // 橡胶动画
};

Latest podspec

{
    "name": "CSChannelLabelView-OC",
    "version": "0.0.1",
    "summary": "u4e00u4e2au8f7bu91cfu7684u6587u5b57u9891u9053Viewu3002u591au4e2au9891u9053u53efu6edau52a8uff0cu5c11u91cfu9891u9053u53efu9002u914du95f4u8dddu3002",
    "license": {
        "type": "Apache License",
        "file": "LICENSE"
    },
    "authors": {
        "Joslyn": "[email protected]"
    },
    "homepage": "https://github.com/JoslynWu/CSChannelLabelView-OC",
    "social_media_url": "http://www.jianshu.com/u/fb676e32e2e9",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/JoslynWu/CSChannelLabelView-OC.git",
        "tag": "0.0.1"
    },
    "requires_arc": true,
    "source_files": "Sources/*.{h,m}",
    "public_header_files": "Sources/*.{h}"
}

Pin It on Pinterest

Share This