Inherits from UIView
Declared in TSNavigationStripView.h

Properties

autohideNavigationButtons

If NO navigation buttons always displayed (if navigationButtonsHidden == NO) if YES visibility of each button determined dynamically and depends on currenct selectedSection @def YES

@property (nonatomic, assign) BOOL autohideNavigationButtons

Declared In

TSNavigationStripView.h

backgroundImage

Customise appearance providing bacground image @def nil

@property (nonatomic, strong) UIImage *backgroundImage

Declared In

TSNavigationStripView.h

dataSource

@property (nonatomic, weak) id<TSNavigationStripDataSource> dataSource

debugMode

If YES funny colors set to backroundColor property of subviews. @def NO

@property (nonatomic, assign) BOOL debugMode

Declared In

TSNavigationStripView.h

delegate

@property (nonatomic, weak) id<TSNavigationStripViewDelegate> delegate

emptySpaceHolderImage

If sections conatainer not full then emptySpaceHolderImage would be displayed on one of the edge. Set it if you need continious graphics layout. @def nil

@property (nonatomic, strong) UIImage *emptySpaceHolderImage

Declared In

TSNavigationStripView.h

leftNavigationButton

Customize appearance of default components

@property (nonatomic, strong, readonly) UIButton *leftNavigationButton

Declared In

TSNavigationStripView.h

maskSectionsContainerEdges

If YES alpha mask applied to sections container to add effect of transparency on edges. @def YES

@property (nonatomic, assign) BOOL maskSectionsContainerEdges

Declared In

TSNavigationStripView.h

navigationButtonsHidden

If YES navigation buttons are not shown, if NO navigation buttons visibility depends on autohideNavigationButtons @def NO

@property (nonatomic, assign) BOOL navigationButtonsHidden

Declared In

TSNavigationStripView.h

rightNavigationButton

@property (nonatomic, strong, readonly) UIButton *rightNavigationButton

sectionWidth

@property (nonatomic, assign) CGFloat sectionWidth

sectionsAligment

Determine how sections aligned in container view. @supported UIViewContentModeCenter, UIViewContentModeLeft, UIViewContentModeRight, UIViewContentModeScaleAspectFill @def UIViewContentModeCenter

@property (nonatomic, assign) UIViewContentMode sectionsAligment

Declared In

TSNavigationStripView.h

selectedSection

Currently selected section.

@property (nonatomic, assign, readonly) NSInteger selectedSection

Declared In

TSNavigationStripView.h

selectedSectionWidth

Default section width value. These values used in case if dataSource is not provide this information. @def selectedSectionWidth = 256 sectionWidth = 128

@property (nonatomic, assign) CGFloat selectedSectionWidth

Declared In

TSNavigationStripView.h

selectionMarker

Tis view would be layouted under selected section and smoothly moved during selection animation @def nil

@property (nonatomic, strong) UIView *selectionMarker

Declared In

TSNavigationStripView.h

Instance Methods

deselectItemAtIndex:fromLeftSide:

- (void)deselectItemAtIndex:(NSInteger)index fromLeftSide:(BOOL)leftSide

initWithFrame:

- (id)initWithFrame:(CGRect)frame

insertItemAtIndex:fromLeftSide:animated:

- (void)insertItemAtIndex:(NSInteger)index fromLeftSide:(BOOL)leftSide animated:(BOOL)animated

insertItemsAtIndexes:fromLeftSide:animated:

- (void)insertItemsAtIndexes:(NSArray *)indexes fromLeftSide:(BOOL)leftSide animated:(BOOL)animated

insertSectionAtIndex:animated:

Modify content

- (void)insertSectionAtIndex:(NSInteger)index animated:(BOOL)animated

Declared In

TSNavigationStripView.h

insertSectionsAtIndexes:animated:

- (void)insertSectionsAtIndexes:(NSArray *)indexes animated:(BOOL)animated

isItemSelectedAtIndex:fromLeftSide:

- (BOOL)isItemSelectedAtIndex:(NSInteger)index fromLeftSide:(BOOL)leftSide

reloadData

Reload content

- (void)reloadData

Declared In

TSNavigationStripView.h

reloadItemsData

- (void)reloadItemsData

reloadSectionsData

- (void)reloadSectionsData

removeItemAtIndex:fromLeftSide:animated:

- (void)removeItemAtIndex:(NSInteger)index fromLeftSide:(BOOL)leftSide animated:(BOOL)animated

removeItemsAtIndexes:fromLeftSide:animated:

- (void)removeItemsAtIndexes:(NSArray *)indexes fromLeftSide:(BOOL)leftSide animated:(BOOL)animated

removeSectionAtIndex:animated:

- (void)removeSectionAtIndex:(NSInteger)index animated:(BOOL)animated

removeSectionsAtIndexes:animated:

- (void)removeSectionsAtIndexes:(NSArray *)indexes animated:(BOOL)animated

scrollSelectedSectionTo:

Applied only if sectionsAligment is set to UIViewContentAligmentCenter. Shift selected section to right/left side.

- (void)scrollSelectedSectionTo:(CGFloat)normOffset

Parameters

normOffset
  • in range [-1..1]

Declared In

TSNavigationStripView.h

selectItemAtIndex:fromLeftSide:

- (void)selectItemAtIndex:(NSInteger)index fromLeftSide:(BOOL)leftSide

selectSectionAtIndex:animated:

Change selection

- (void)selectSectionAtIndex:(NSInteger)index animated:(BOOL)animated

Declared In

TSNavigationStripView.h

updateItemsAtIndexes:fromLeftSide:animated:

- (void)updateItemsAtIndexes:(NSArray *)indexes fromLeftSide:(BOOL)leftSide animated:(BOOL)animated

updateSectionsAtIndexes:animated:

- (void)updateSectionsAtIndexes:(NSArray *)indexes animated:(BOOL)animated