RBTabbedPageContainerView Class Reference

Inherits from UIView
Declared in RBTabbedPageContainerView.h

Overview

A container view that manages pages with tabs.

  delegate

A delegate to receive tab page selection events.

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

Discussion

A delegate to receive tab page selection events.

Declared In

RBTabbedPageContainerView.h

  headerVisible

Whether or not the tab header should be visible.

@property (nonatomic) BOOL headerVisible

Discussion

Whether or not the tab header should be visible.

Declared In

RBTabbedPageContainerView.h

  barPositionAtBottom

Whether or not the tab header should be positioned at the bottom (true) or not.

@property (nonatomic) BOOL barPositionAtBottom

Discussion

Whether or not the tab header should be positioned at the bottom (true) or not.

Declared In

RBTabbedPageContainerView.h

  shouldSizeForCurrentTabOnly

Whether or not the container view should size to fit the current page, or all pages.

@property (nonatomic) BOOL shouldSizeForCurrentTabOnly

Discussion

Whether or not the container view should size to fit the current page, or all pages.

Declared In

RBTabbedPageContainerView.h

  pageCount

The number of tab pages currently in the container.

@property (nonatomic, readonly) NSUInteger pageCount

Discussion

The number of tab pages currently in the container.

Declared In

RBTabbedPageContainerView.h

  currentPageIndex

Gets or sets the index of the current page.

@property (nonatomic) NSUInteger currentPageIndex

Discussion

Gets or sets the index of the current page.

Declared In

RBTabbedPageContainerView.h

– pageAtIndex:

Gets the page view at the given index.

- (nonnull UIView *)pageAtIndex:(int)index

Parameters

index

The page index.

Return Value

The page view.

Discussion

Gets the page view at the given index.

Declared In

RBTabbedPageContainerView.h

– pageTitleAtIndex:

Gets the title of the page at the given index.

- (nonnull NSString *)pageTitleAtIndex:(NSUInteger)index

Parameters

index

The index of the page

Return Value

The title of the page.

Discussion

Gets the title of the page at the given index.

Declared In

RBTabbedPageContainerView.h

– addPage:withTitle:

Adds a page tab with the given title.

- (BOOL)addPage:(nonnull UIView *)page withTitle:(nonnull NSString *)title

Parameters

page

The page view to add.

title

The title of the page to add.

Return Value

Whether or not the operation was successful.

Discussion

Adds a page tab with the given title.

Declared In

RBTabbedPageContainerView.h

– addPage:withTitle:usingButton:

Adds a page tab with the given title and button.

- (BOOL)addPage:(nonnull UIView *)page withTitle:(nonnull NSString *)title usingButton:(nonnull RBTabbedPageContainerButtonView *)button

Parameters

page

The page view to add.

title

The title of the page to add.

button

The tab button to use in the header.

Return Value

Whether or not the operation was successful.

Discussion

Adds a page tab with the given title and button.

Declared In

RBTabbedPageContainerView.h

– removePage:

Removes the given page view from the container.

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

Parameters

page

The page view to remove.

Return Value

Whether or not the eoperation was successful.

Discussion

Removes the given page view from the container.

Declared In

RBTabbedPageContainerView.h

– removeAllPages

Removes all pages from the container.

- (void)removeAllPages

Discussion

Removes all pages from the container.

Declared In

RBTabbedPageContainerView.h