Latest 1.0
Homepage https://github.com/SPStore/SPMultipleSwitch
License MIT
Platforms ios 5.0
Authors

image

CocoaPods

pod "SPMultipleSwitch", "~> 1.0"

Use

    SPMultipleSwitch *multipleSwitch = [[SPMultipleSwitch alloc] initWithItems:@[@"Feed",@"Leaderboard"]];
    multipleSwitch.frame = CGRectMake(30, 100, ScreenW-60, 40);
    multipleSwitch.backgroundColor = [UIColor orangeColor];
    multipleSwitch.selectedTitleColor = [UIColor orangeColor];
    multipleSwitch.titleColor = [UIColor whiteColor];
    multipleSwitch.trackerColor = [UIColor whiteColor];
    multipleSwitch.contentInset = 5;
    multipleSwitch.spacing = 10;
    multipleSwitch.titleFont = [UIFont boldSystemFontOfSize:17];
    multipleSwitch.trackerColor = [UIColor whiteColor];
    [multipleSwitch addTarget:self action:@selector(multipleSwitchAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:multipleSwitch];

Swift版

DGRunkeeperSwitch

Latest podspec

{
    "name": "SPMultipleSwitch",
    "version": "1.0",
    "summary": "u4e00u4e2au5206u6bb5u9009u62e9u5668",
    "description": "u8fd9u662fu4e00u4e2au5206u6bb5u9009u62e9u5668",
    "homepage": "https://github.com/SPStore/SPMultipleSwitch",
    "license": "MIT",
    "authors": {
        "SPStore": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/SPStore/SPMultipleSwitch.git",
        "tag": "1.0"
    },
    "source_files": "SPMultipleSwitch",
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This