프로젝트
GitHub에서 보기
dkhamsing/ScrollTab
소개
Scrolling Tab for iOS
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalScrollTab
A scroll tab alternative to UISegmentedControl.

Install
CocoaPods
pod 'ScrollTab'
Manual
Add the files in the ScrollTab folder to your project.
Usage
#import "ScrollTab.h"
// ...
ScrollTabConfig *config = [[ScrollTabConfig alloc] init];
config.items = @[@"zero", @"one", @"two", @"three", @"four"];
ScrollTab *tab = [[ScrollTab alloc] init];
tab.config = config;
tab.selected = ^(NSString *noop, NSInteger index) {
NSLog(@"selected tab with index %@", @(index));
};
// Layout
[self.view addSubview:tab];
// ...
Customize
Change the control's layout, item font/colors and more using ScrollTabConfig.
Demo
ScrollTab includes a sample project.
Compatibility
This project was tested with iOS 10, see the 1.x tags for older versions.
Contact
License
ScrollTab is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…