NEUPagingSegmentedControl
@interface NEUPagingSegmentedControl
A horizontal segmented control that works with UIScrollView paging.
-
The index of the segment that’s currently highlighted.
Declaration
Objective-C
@property (readonly, assign, nonatomic) int currentIndex; -
The object that acts as the delegate of the paging segmented control.
Declaration
Objective-C
@property (readwrite, nonatomic) id<NEUPagingSegmentedControlDelegate> delegate; -
Set up paging segments with an array of titles.
Declaration
Objective-C
@property (nonatomic, copy) NSArray *segmentTitles -
The scroll view that moves its contents along with the indicator.
Declaration
Objective-C
@property (nonatomic, strong) UIScrollView *scrollView -
The indicator view below the segment titles.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIView *indicatorView
-
The color of the bottom border.
Declaration
Objective-C
@property (nonatomic, copy) UIColor *borderColor -
The color of the vertical separators between segments.
Declaration
Objective-C
@property (nonatomic, copy) UIColor *buttonSeparatorColor -
The text color for each segment.
Declaration
Objective-C
@property (nonatomic, copy) UIColor *segmentTitleColor -
The text color for the highlighted segment.
Declaration
Objective-C
@property (nonatomic, copy) UIColor *selectedSegmentTitleColor
-
Initializes a paging segmented control with given parameters.
Declaration
Objective-C
- (instancetype)initWithFrame:(id)frame segmentTitles:(id)titles scrollView:(id)scrollView;Parameters
frameThe frame rectangle for the view.
titlesAn array of NSString objects for segment titles.
scrollViewThe scroll view that corresponds to the paging indicator.
Return Value
An initialized paging segmented control.
View on GitHub
NEUPagingSegmentedControl Class Reference