RBTabbedPageContainerViewController Class Reference

Inherits from UIViewController
Declared in RBTabbedPageContainerViewController.h

Overview

A container view that manages pages with tabs.

  delegate

A delegate to receive tab page selection events.

@property (nonatomic, weak, nullable) id<RBTabbedPageContainerViewControllerDelegate> delegate

Declared In

RBTabbedPageContainerViewController.h

  tabBarVisible

Whether or not the tab bar is visible. Default = YES.

@property (nonatomic, readonly) BOOL tabBarVisible

Declared In

RBTabbedPageContainerViewController.h

  tabBarAnimator

The tab bar animator. Default = [RBAnimator defaultAnimator].

@property (nonatomic, nonnull) RBAnimator *tabBarAnimator

Declared In

RBTabbedPageContainerViewController.h

  tabBarHeight

The tab bar height. Default = 49.

@property (nonatomic) CGFloat tabBarHeight

Declared In

RBTabbedPageContainerViewController.h

  tabBarVisualEffect

The tab bar visual effect to apply. Default = RBVisualEffectTypeNone.

@property (nonatomic) RBVisualEffectType tabBarVisualEffect

Declared In

RBTabbedPageContainerViewController.h

  tabBarShouldOverlapContent

Whether or not the tab bar should over lap the contents. If this is YES then the contentChromeInsets are not used and hence the tab bar will overlap. Default = NO.

@property (nonatomic) BOOL tabBarShouldOverlapContent

Declared In

RBTabbedPageContainerViewController.h

  pageCount

The number of tab pages currently in the container.

@property (nonatomic, readonly) NSUInteger pageCount

Declared In

RBTabbedPageContainerViewController.h

  selectedPageIdentifier

Gets or sets the current tab page via the identifier.

@property (nonatomic, nullable) NSString *selectedPageIdentifier

Declared In

RBTabbedPageContainerViewController.h

  selectedPageIndex

Gets or sets the selected tab page via the index. Returns NSNotFound if a page is not set.

@property (nonatomic) NSInteger selectedPageIndex

Declared In

RBTabbedPageContainerViewController.h

  selectedPage

Gets or sets the selected tab page.

@property (nonatomic, nullable) UIViewController *selectedPage

Declared In

RBTabbedPageContainerViewController.h

– hideTabBar:

Hides the tabBar if it is not already hidden.

- (void)hideTabBar:(BOOL)animated

Parameters

animated

Whether or not to animate hiding the tabBar.

Declared In

RBTabbedPageContainerViewController.h

– showTabBar:

Shows the tabBar if it is not already being shown.

- (void)showTabBar:(BOOL)animated

Parameters

animated

Whether or not to animate showing the tabBar.

Declared In

RBTabbedPageContainerViewController.h

– addPage:

Adds a page tab with the given details.

- (BOOL)addPage:(nonnull RBTabbedPageItem *)item

Parameters

item

The RBTabbedPageItem that encapsulates the page view controller and button.

Return Value

Whether or not the operation was successful.

Declared In

RBTabbedPageContainerViewController.h

– removePageWithIdentifier:

Removes the given page view from the container.

- (BOOL)removePageWithIdentifier:(nonnull NSString *)identifier

Parameters

identifier

The identifier of the page to remove.

Return Value

Whether or not the operation was successful.

Declared In

RBTabbedPageContainerViewController.h

– removePage:

Removes the given page view from the container.

- (BOOL)removePage:(nonnull UIViewController *)page

Parameters

page

The page view to remove.

Return Value

Whether or not the operation was successful.

Declared In

RBTabbedPageContainerViewController.h

– removeAllPages

Removes all pages from the container.

- (void)removeAllPages

Declared In

RBTabbedPageContainerViewController.h

– addTabBarView:withAlignment:withFill:

Adds a custom view to the tab bar with the given details.

- (BOOL)addTabBarView:(nonnull UIView *)view withAlignment:(RBHorizontalAlignment)alignment withFill:(BOOL)fill

Parameters

view

The view to add.

alignment

The alignment of the tab button.

fill

Wheter or not to have the button fill the available space (default = YES)

Return Value

Whether or not the operation was successful.

Declared In

RBTabbedPageContainerViewController.h

– removeTabBarView:

Removes a custom view from the tab bar;

- (BOOL)removeTabBarView:(nonnull UIView *)view

Parameters

view

The view to add.

Return Value

Whether or not the operation was successful.

Declared In

RBTabbedPageContainerViewController.h

– tabWillSelectPage:withIdentifier:animated:

Called to notify that a tab will be selected.

- (void)tabWillSelectPage:(nonnull UIViewController *)page withIdentifier:(nonnull NSString *)identifier animated:(BOOL)animated

Parameters

page

The view controller.

identifier

The identifier of the page that will be selected.

animated

Whether or not the transition to the page will be animated.

Declared In

RBTabbedPageContainerViewController.h

– tabWillDeselectPage:withIdentifier:animated:

Called to notify that a tab will be deselected.

- (void)tabWillDeselectPage:(nonnull UIViewController *)page withIdentifier:(nonnull NSString *)identifier animated:(BOOL)animated

Parameters

page

The view controller.

identifier

The identifier of the page that will be selected.

animated

Whether or not the transition to the page will be animated.

Declared In

RBTabbedPageContainerViewController.h

– tabDidSelectPage:withIdentifier:animated:

Called to notify that a tab was selected.

- (void)tabDidSelectPage:(nonnull UIViewController *)page withIdentifier:(nonnull NSString *)identifier animated:(BOOL)animated

Parameters

page

The view controller.

identifier

The identifier of the page that will be selected.

animated

Whether or not the transition to the page will be animated.

Declared In

RBTabbedPageContainerViewController.h

– tabDidDeselectPage:withIdentifier:animated:

Called to notify that a tab was deselected.

- (void)tabDidDeselectPage:(nonnull UIViewController *)page withIdentifier:(nonnull NSString *)identifier animated:(BOOL)animated

Parameters

page

The view controller.

identifier

The identifier of the page that will be selected.

animated

Whether or not the transition to the page will be animated.

Declared In

RBTabbedPageContainerViewController.h

– tabButtonWasTapped:withIdentifier:

Called to notify that a tab button was tapped.

- (void)tabButtonWasTapped:(nonnull RBButton *)button withIdentifier:(nonnull NSString *)identifier

Parameters

button

The button that was tapped.

identifier

The identifier of the tab that was tapped.

Declared In

RBTabbedPageContainerViewController.h

– tabBarWillAppear

Called to notify that the tab bar will appear.

- (void)tabBarWillAppear

Declared In

RBTabbedPageContainerViewController.h

– tabBarWillDisappear

Called to notify that the tab bar will disappear.

- (void)tabBarWillDisappear

Declared In

RBTabbedPageContainerViewController.h

– tabBarDidAppear

Called to notify that the tab bar did appear.

- (void)tabBarDidAppear

Declared In

RBTabbedPageContainerViewController.h

– tabBarDidDisappear

Called to notify that the tab bar did disappear.

- (void)tabBarDidDisappear

Declared In

RBTabbedPageContainerViewController.h