IGSlideTabView Class Reference

Inherits from UIView
Declared in IGSlideTabView.h

Overview

The IGSlideTabView allows you to easily create a tab item on any side of the contained view that slides out content when tapped or swiped. Customization options include a property named useTabPadding that allows you to provide padding around the contentAreaView so that your views are not overlapped by tabs, pulsing a tab item to draw attention and full flexibility to create your own tab view and tab content view.

Initialization and Configuration

  contentAreaView

The content area of the IGSlideTabView.

@property (nonatomic, readonly) UIView *contentAreaView

Discussion

Adding views to this content area ensures correct positioning when useTabPadding is enabled.

Declared In

IGSlideTabView.h

  delegate

The object that acts as the delegate of the IGSlideTabView.

@property (nonatomic, assign, nullable) id<IGSlideTabDelegate> delegate

Discussion

The class must adopt the IGSlideTabDelegate protocol.

Declared In

IGSlideTabView.h

  useTabPadding

Provides padding on each side of the content area to not overlap views with the tab items.

@property (nonatomic, assign) BOOL useTabPadding

Declared In

IGSlideTabView.h

Tabs

– addTab:

Adds a single tab item to the IGSlideTabView.

- (void)addTab:(IGSlideTabItem *)tab

Parameters

tab

The tab item to add to the IGSlideTabView.

Declared In

IGSlideTabView.h

– addTabs:

Adds an array of tab items to the IGSlideTabView.

- (void)addTabs:(NSArray<__kindofIGSlideTabItem*> *)tabs

Parameters

tabs

The NSArray of tab items to add to the IGSlideTabView.

Declared In

IGSlideTabView.h

– hideAllTabs

Hide all visible tab items.

- (void)hideAllTabs

Declared In

IGSlideTabView.h

– pulseTab:

Pulses a tab to draw attention.

- (void)pulseTab:(IGSlideTabItem *)tab

Parameters

tab

The tab item to pulse.

Discussion

A tab pulse will occur on the default tabView of your IGSlideTabItem, should you assign your own tabView use the slideTabView:tabPulsing: IGSlideTabDelegate method to create a custom pulse effect.

Declared In

IGSlideTabView.h

– removeTab:

Remove a tab item from the IGSlideTabView.

- (void)removeTab:(IGSlideTabItem *)tab

Parameters

tab

The tab item to remove.

Declared In

IGSlideTabView.h

– removeTabs:

Remove tab items from the IGSlideTabView.

- (void)removeTabs:(NSArray<__kindofIGSlideTabItem*> *)tabs

Parameters

tabs

An NSArray of tab items to remove.

Declared In

IGSlideTabView.h

– showAllTabs

Show all visible tab items.

- (void)showAllTabs

Declared In

IGSlideTabView.h

– tabAtPoint:

Checks for and returns a tab item at a specific point. Returns nil if no tab item was found at that point.

- (IGSlideTabItem *)tabAtPoint:(CGPoint)point

Parameters

point

The CGPoint to check for a tab item.

Return Value

The IGSlideTabItem or nil if no tab item was found at that point.

Declared In

IGSlideTabView.h

  tabs

An NSArray containing all tab items.

@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *tabs

Declared In

IGSlideTabView.h