TSNavigationStripView Class Reference
Inherits from | UIView |
Declared in | TSNavigationStripView.h |
Tasks
-
delegate
property -
dataSource
property -
selectedSection
property -
selectedSectionWidth
property -
sectionWidth
property -
debugMode
property -
maskSectionsContainerEdges
property -
sectionsAligment
property -
autohideNavigationButtons
property -
navigationButtonsHidden
property -
leftNavigationButton
property -
rightNavigationButton
property -
backgroundImage
property -
emptySpaceHolderImage
property -
selectionMarker
property -
– initWithFrame:
-
– reloadData
-
– reloadSectionsData
-
– reloadItemsData
-
– selectSectionAtIndex:animated:
-
– selectItemAtIndex:fromLeftSide:
-
– deselectItemAtIndex:fromLeftSide:
-
– isItemSelectedAtIndex:fromLeftSide:
-
– scrollSelectedSectionTo:
-
– insertSectionAtIndex:animated:
-
– removeSectionAtIndex:animated:
-
– insertItemAtIndex:fromLeftSide:animated:
-
– removeItemAtIndex:fromLeftSide:animated:
-
– updateSectionsAtIndexes:animated:
-
– updateItemsAtIndexes:fromLeftSide:animated:
-
– insertSectionsAtIndexes:animated:
-
– removeSectionsAtIndexes:animated:
-
– insertItemsAtIndexes:fromLeftSide:animated:
-
– removeItemsAtIndexes:fromLeftSide:animated:
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
debugMode
If YES funny colors set to backroundColor property of subviews. @def NO
@property (nonatomic, assign) BOOL debugMode
Declared In
TSNavigationStripView.h
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
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
Instance Methods
deselectItemAtIndex:fromLeftSide:
- (void)deselectItemAtIndex:(NSInteger)index fromLeftSide:(BOOL)leftSide
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
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