• Stars
    star
    267
  • Rank 153,621 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Scrolling Tab for iOS

ScrollTab

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.

More Repositories

1

open-source-ios-apps

📱 Collaborative List of Open-Source iOS Apps
41,887
star
2

awesome_bot

✅ Validate links in awesome projects
Ruby
826
star
3

ios-asset-names

📐 Guide to name iOS assets
Swift
670
star
4

frankenstein

:octocat: Correct README Redirects
Ruby
308
star
5

dkhamsing.github.io

:octocat: My GitHub Page
Ruby
221
star
6

news

📰 iOS news app in the style of Apple News, CNN, BBC, Facebook, NYT, Twitter, Reddit & more
Swift
217
star
7

TabDump

📰 TabDump app for iOS
Objective-C
98
star
8

osia

:octocat: iOS app to browse open-source-ios-apps
Swift
88
star
9

apns-guide

🔔 Guide to setup APNS
86
star
10

DKImageBrowser

iOS Image Browser with a Thumbnail Strip
Objective-C
56
star
11

stocks

📈 Basic iOS app to track stocks (data from Finnhub, Tiingo, or IEX Cloud)
Swift
42
star
12

covid19.swift

🌐 Small iOS app to show some COVID-19 health, data, news and tweets
Swift
27
star
13

listapp.ios

✨ Basic lists from iOS 2 to iOS 15
Swift
27
star
14

fastmdb

🔍 Fast iOS app to browse and search movies, tv, actors, credits
Swift
22
star
15

how-much

💰 iOS price list app using Firebase, Realm & more
Objective-C
21
star
16

xcode-readme

🔍 Correct the spelling of Xcode in a README
Ruby
10
star
17

GitHubOAuthController

:octocat: Simple GitHub OAuth Controller for iOS
Objective-C
10
star
18

cocoapods-readme

🔍 Correct the spelling of CocoaPods in a README
Ruby
9
star
19

pdf_xcassets

🚋 Generate Xcode xcassets for PDF assets
Ruby
8
star
20

upcomingtv

📆 iOS app to track when your favorite tv show airs next
Swift
8
star
21

github-readme

:octocat: Get the README from a GitHub repo
Ruby
6
star
22

update_profile_pic

👤 Update your Twitter profile pic in a snap
Ruby
6
star
23

delete_my_tweets

🐤 Delete my tweets
Ruby
5
star
24

markdown_html

📄 The simplest way to convert Markdown to HTML
Ruby
4
star
25

readme-correct

😁 Fix GitHub typos with ease
Ruby
4
star
26

tumblr_uploadr

🐼 Tumblr photo batch uploader
Ruby
3
star
27

forker

🍴 Fork GitHub repos found on a page
Ruby
2
star
28

covid19cli

⚡ Quick CLI for COVID-19 data
Ruby
2
star
29

twitter_oauth_token

✋ Twitter OAuth token Ruby library
Ruby
1
star