Code Monkey home page Code Monkey logo

scrollingtabbarexample's Introduction

iOS ScrollingTabBar


Scrolling Tab Bar Component.

A Sample XCode Project for iOS. Runs on iOS 5.1 or higher


Inspired by idev-recipes CustomTabBar

Scrolling Tab Bar Licensed under MIT License

Sources: http://github.com/HerbertV/


Features

  • Fully skinnable
  • Has optional scroll indicators and bumbers.
  • can be used to switch between View Controllers or to call a Selector.
  • As long as all tabs fit in the screen width, it behaves like the original iOS Tab Bar.

How to use

Adding it to your own project:

just copy the "ScrollingTabBar" folder into your project and add the files inside to your project.

Some code snippets:

// inits a tab bar for 5 tabs
self.tabBar = [[ScrollingTabBar alloc] initWithItemCount:5 delegate: nil];

// adds a tab item with a UIViewController
// label can be nil
[tabBar addTabBarItemWithLabel: @"Home" 
						normalIcon: @"Data/ico/TabBarItemHomeN.png" 
						activeIcon: @"Data/ico/TabBarItemHomeA.png"
					viewController: yourUIViewController
	 ];
	 
// adds a tab item with a selector and target and without a label
[tabBar addTabBarItemWithLabel: nil
						normalIcon: @"Data/ico/TabBarItemLangDE.png"
						  selector: @selector(yourSelector)
					selectorTarget: yourTarget
	 ];	 
	 
// disables/enables a tab item at the given index	 
[tabBar enableTab:NO atIndex:0];

// preselect a tab item
[tabBar selectTabAtIndex:0];

// changes the background tint 
tabBar.backgroundColor = [UIColor blackColor]

Sample Images

Drafts

Contains psd files for the icons/images this component uses. Some of these icons are based on WPZOOM Developer Icon Set.

WPZOOM Developer Icon Set by WPZOOM is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.

Designed by David Ferreira http://www.wpzoom.com

scrollingtabbarexample's People

Contributors

4pixelsdev avatar herbertv avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ios-mayank

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.