Latest1.0
Homepagehttps://github.com/MonkeyS914/SCScrollMenu
LicenseMIT
Platformsios 6.0
Authors

SCTabBtnScrollView

侧滑导航栏

SCTabBtnScrollView.h 仿网易导航栏

image

简单集成

使用方法,把SCTabBtnScrollView.h和.m文件夹拖到自己工程下面

import SCTabBtnScrollView.h

在你的代码中添加下面一段

NSMutableArray *arr = [[NSMutableArray alloc]initWithObjects:@"推荐",@"羽毛球",@"乒乓球",@"网球",@"台球",@"游泳",@"健身",@"跑步",@"足球",@"篮球",@"舞蹈",@"瑜伽",@"武术",@"体操",@"铁人三项",@"其他", nil];

SCTabBtnScrollView *sctab = [[SCTabBtnScrollView alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 40)];

sctab.numOfBtnsShownInScreen = 6;
sctab.duration = 0.2f;
sctab.btnHeight = 40.0f;
sctab.test = 1.5f;
sctab.titleSelectedColor = [UIColor redColor];
sctab.titleUnSelectedColor = [UIColor whiteColor];
sctab.ScrollDelegate = self;
sctab.backgroundColor = [UIColor greenColor];

[sctab initTabBtnWithBtnTitleArr:arr];

Latest podspec

{
    "name": "SCScrollMenu",
    "version": "1.0",
    "summary": "u4effu7f51u6613u5bfcu822au680f",
    "description": "A longer description of SCSlider in Markdown format.nn* Think: Why did you write this? What is the focus? What does it do?n* CocoaPods will be using this to generate tags, and improve search results.n* Try to keep it short, snappy and to the point.n* Finally, don't worry about the indent, CocoaPods strips it!",
    "homepage": "https://github.com/MonkeyS914/SCScrollMenu",
    "license": "MIT",
    "authors": {
        "MonkeyS914": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/MonkeyS914/SCScrollMenu.git",
        "tag": "1.0"
    },
    "source_files": "SCScrollMenu/**/*.{h,m}"
}

Pin It on Pinterest

Share This