GeezerVison is showing github.com — GitHub - SPStore/SPMultipleSwitch: 类似segment功能,label混合显示,全网OC版本第一例,简书地址:
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation

pod "SPMultipleSwitch", "~> 1.0"
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];
DGRunkeeperSwitch
About
类似segment功能,label混合显示,全网OC版本第一例,简书地址:
Topics
Resources
Stars
38 stars
Watchers
2 watching
Forks