Inherits from NSObject
Declared in IGSlideTabBase.h

Overview

The IGSlideTabItemBase is the base class for all tab items in the IGSlideTabView. It represents the tab view and content area view.

Upon accessing the view properties of the tabView or contentView property, should either of these be nil, they will automatically create a default instance. To use a custom view for the tabView or contentView, simply assign a UIView to the respective property.

Tab items can be hidden, pulsed, tapped, swiped, expanded and collapsed all through interaction or programmatically. Properties and events for all features are provided for complete flexibility.

Note: If you wish to derive your own tab item, derive from the IGSlideTabItem class.

Tasks

Properties

actualContentSize

Provides the actual calculated height and width of the tab item content view.

@property (nonatomic, readonly) CGSize actualContentSize

Declared In

IGSlideTabBase.h

contentSize

The IGSlideTabContentSize class for manipulating the tab content view size.

@property (nonatomic, retain) IGSlideTabContentSize *contentSize

Declared In

IGSlideTabBase.h

contentView

The view representing the content view of the tab item.

@property (nonatomic, retain) UIView *contentView

Discussion

If accessed while property was previously nil will create a default instance.

Declared In

IGSlideTabBase.h

isDraggable

Allow or prevent dragging of the tab item’s tab view using one of the supported enumerations.

@property (nonatomic, assign) IGSlideTabDrag isDraggable

Discussion

Supported enumeration values:

  • IGSlideTabDragNever
  • IGSlideTabDragOpened
  • IGSlideTabDragClosed
  • IGSlideTabDragOpenedOrClosed

Declared In

IGSlideTabBase.h

isExpanded

Set the tab item as expanded or collapsed, or provides information as to whether the tab item is currently expanded or collapsed.

@property (nonatomic, assign) BOOL isExpanded

Declared In

IGSlideTabBase.h

isHidden

Set the tab item as hidden or visible, or provides information as to whether the tab item is currently hidden or visible.

@property (nonatomic, assign) BOOL isHidden

Declared In

IGSlideTabBase.h

isSwipeable

Set the tab item to allow or prevent the tab expanding and collapsing by swiping the tab view.

@property (nonatomic, assign) BOOL isSwipeable

Declared In

IGSlideTabBase.h

isTappable

Set the tab item to allow or prevent the tab expanding and collapsing by tapping the tab view.

@property (nonatomic, assign) BOOL isTappable

Declared In

IGSlideTabBase.h

tabColor

The default tab view’s fill color.

@property (nonatomic, retain) UIColor *tabColor

Discussion

Changes the default tab’s background fill color. If a custom view was assigned to tabView, then this property is ignored.

Declared In

IGSlideTabBase.h

tabLabel

Returns the tab label used with the default tab view.

@property (nonatomic, readonly) UILabel *tabLabel

Discussion

If a custom view was assigned to tabView, then this property is ignored.

Declared In

IGSlideTabBase.h

tabLocation

The tab’s location in the IGSlideTabView.

@property (nonatomic, assign) IGSlideTabLocation tabLocation

Discussion

Supported enumeration values:

  • IGSlideTabLocationTop
  • IGSlideTabLocationBottom
  • IGSlideTabLocationLeft
  • IGSlideTabLocationRight

Declared In

IGSlideTabBase.h

tabOffset

The amount to offset the x and y values of the tab view’s position.

@property (nonatomic, assign) CGPoint tabOffset

Declared In

IGSlideTabBase.h

tabPosition

The tab view’s position along the x or y axis.

@property (nonatomic, assign) CGFloat tabPosition

Discussion

The tab view’s position starts at the left-most or top-most position based on the set tabLocation.

Declared In

IGSlideTabBase.h

tabShapeLayer

Returns the shape layer used as the default tab view’s tab shape.

@property (nonatomic, readonly) CAShapeLayer *tabShapeLayer

Discussion

If a custom view was assigned to tabView, then this property is ignored.

Declared In

IGSlideTabBase.h

tabSize

The height and width of the tab view.

@property (nonatomic, assign) CGSize tabSize

Declared In

IGSlideTabBase.h

tabView

The view representing the tab view of the tab item.

@property (nonatomic, retain) UIView *tabView

Discussion

If accessed while property was previously nil will create a default instance.

Declared In

IGSlideTabBase.h

title

The text that appears in the default tab view’s tab.

@property (nonatomic, retain) NSString *title

Discussion

If a custom view was assigned to tabView, then this property is ignored.

Declared In

IGSlideTabBase.h

transitionDuration

The total duration of animations when expanding or collapsing, measured in seconds.

@property (nonatomic, assign) NSTimeInterval transitionDuration

Declared In

IGSlideTabBase.h