Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

EHTabBar is an imageless implementation of a tab bar similar to one found in Foursquare’s iPhone application.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Demo
Octocat-spinner-32 EHTabBar
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.textile
README.textile

EHTabBar

Created by EGG HAUS, Inc.

EHTabBar is an imageless implementation of a tab bar similar to one found in Foursquare’s iPhone application.

Methods

- (void) setTabs:(NSArray *) tbs;
Accepts an array of NSStrings to set the titles of the tabs. The number of tabs is equal to the number of NSStrings in the array.

- (void)selectTabAtIndex:(NSInteger)tabIndex;
Selects tab at the same index as the tabs are displayed starting at 0.

- (void) selectTab:(EHTab *) t;
Selects tab for a particular EHTab.

@property (nonatomic,retain) UIColor *selectedTextColor;
Sets the text color for selected tabs.

@property (nonatomic,retain) UIColor *deselectedTextColor;
Set the text color for tabs that aren’t selected.

@property (nonatomic,retain) UIColor *shadowColor;
Sets the color of the border on the left of the tab starting at the upper right corner.

@property (nonatomic,retain) UIColor *borderColor;
Sets the color of the border on the bottom of the ETTabBar view, the EHTab starting from the bottom left corner to the upper right corner.

@property (nonatomic,retain) UIColor *tabColor;
Sets the color of the selected tab.

License

EHTabBar is available under the MIT license:

_Copyright © 2009 EGG HAUS, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Something went wrong with that request. Please try again.