GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SPStore/SPMultipleSwitch: 类似segment功能,label混合显示,全网OC版本第一例,简书地址:

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
Demo
Demo
 
 
SPMultipleSwitch
SPMultipleSwitch
 
 
.DS_Store
.DS_Store
 
 
README.md
README.md
 
 
SPMultipleSwitch.podspec
SPMultipleSwitch.podspec
 
 
未命名.gif
未命名.gif
 
 

Repository files navigation

SPMultipleSwitch

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

About

类似segment功能,label混合显示,全网OC版本第一例,简书地址:

www.jianshu.com/p/a539fa5e0da5

Topics

buttoncontroleventlabelsegmentswitch

Resources

Readme
Activity

Stars

38 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.