RBTabbedPageItem Class Reference

Inherits from NSObject
Declared in RBTabbedPageContainerViewController.h

Overview

Tab page items, stores the tab view controller and identifier.

  fill

Whether or no the tab button should fill all available space.

@property (nonatomic) BOOL fill

Declared In

RBTabbedPageContainerViewController.h

  alignment

The location of the tab button.

@property (nonatomic) RBHorizontalAlignment alignment

Declared In

RBTabbedPageContainerViewController.h

  identifier

The identifier of the tab.

@property (nonatomic, nonnull, readonly) NSString *identifier

Declared In

RBTabbedPageContainerViewController.h

  viewController

The view controller that provides the contents of the tab.

@property (nonatomic, nonnull, readonly) UIViewController *viewController

Declared In

RBTabbedPageContainerViewController.h

– initWithIdentifier:withViewController:withTitle:withAlignment:

Initializes a new RBTabbedPageItem.

- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier withViewController:(nonnull UIViewController *)viewController withTitle:(nonnull NSString *)title withAlignment:(RBHorizontalAlignment)alignment

Parameters

identifier

The unique identifier of the tab page item.

viewController

The view controller.

title

The title to apply to the tab button.

alignment

The location of the tab button.

Return Value

The initialized RBTabbedPageItem.

Declared In

RBTabbedPageContainerViewController.h

– initWithIdentifier:withViewController:withImage:withAlignment:

Initializes a new RBTabbedPageItem.

- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier withViewController:(nonnull UIViewController *)viewController withImage:(nonnull UIImage *)image withAlignment:(RBHorizontalAlignment)alignment

Parameters

identifier

The unique identifier of the tab page item.

viewController

The view controller.

image

The image to apply to the tab button.

alignment

The location of the tab button.

Return Value

The initialized RBTabbedPageItem.

Declared In

RBTabbedPageContainerViewController.h

– initWithIdentifier:withViewController:withTitle:withImage:withAlignment:

Initializes a new RBTabbedPageItem.

- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier withViewController:(nonnull UIViewController *)viewController withTitle:(nonnull NSString *)title withImage:(nonnull UIImage *)image withAlignment:(RBHorizontalAlignment)alignment

Parameters

identifier

The unique identifier of the tab page item.

viewController

The view controller.

title

The title to apply to the tab button.

image

The image to apply to the tab button.

alignment

The location of the tab button.

Return Value

The initialized RBTabbedPageItem.

Declared In

RBTabbedPageContainerViewController.h

– initWithIdentifier:withViewController:withButton:withAlignment:

Initializes a new RBTabbedPageItem.

- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier withViewController:(nonnull UIViewController *)viewController withButton:(nonnull RBButton *)button withAlignment:(RBHorizontalAlignment)alignment

Parameters

identifier

The unique identifier of the tab page item.

viewController

The view controller.

button

A custom button to use as the tab button.

alignment

The location of the tab button.

Return Value

The initialized RBTabbedPageItem.

Declared In

RBTabbedPageContainerViewController.h

+ withIdentifier:withViewController:withTitle:withAlignment:

Initializes a new RBTabbedPageItem.

+ (nonnull instancetype)withIdentifier:(nonnull NSString *)identifier withViewController:(nonnull UIViewController *)viewController withTitle:(nonnull NSString *)title withAlignment:(RBHorizontalAlignment)alignment

Parameters

identifier

The unique identifier of the tab page item.

viewController

The view controller.

title

The title to apply to the tab button.

alignment

The location of the tab button.

Return Value

The initialized RBTabbedPageItem.

Declared In

RBTabbedPageContainerViewController.h

+ withIdentifier:withViewController:withImage:withAlignment:

Initializes a new RBTabbedPageItem.

+ (nonnull instancetype)withIdentifier:(nonnull NSString *)identifier withViewController:(nonnull UIViewController *)viewController withImage:(nonnull UIImage *)image withAlignment:(RBHorizontalAlignment)alignment

Parameters

identifier

The unique identifier of the tab page item.

viewController

The view controller

image

The image to apply to the tab button.

alignment

The location of the tab button.

Return Value

The initialized RBTabbedPageItem.

Declared In

RBTabbedPageContainerViewController.h

+ withIdentifier:withViewController:withTitle:withImage:withAlignment:

Initializes a new RBTabbedPageItem.

+ (nonnull instancetype)withIdentifier:(nonnull NSString *)identifier withViewController:(nonnull UIViewController *)viewController withTitle:(nonnull NSString *)title withImage:(nonnull UIImage *)image withAlignment:(RBHorizontalAlignment)alignment

Parameters

identifier

The unique identifier of the tab page item.

viewController

The view controller.

title

The title to apply to the tab button.

image

The image to apply to the tab button.

alignment

The location of the tab button.

Return Value

The initialized RBTabbedPageItem.

Declared In

RBTabbedPageContainerViewController.h