TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Jérôme Morissard.
An iOS customizable ScrollIndicator
typedef enum {
JMOVerticalScrollIndicatorPositionRight = 1 << 0, //Default for vertical
JMOVerticalScrollIndicatorPositionLeft = 1 << 1,
JMOHorizontalScrollIndicatorPositionBottom = 1 << 2, //Default for horizontal
JMOHorizontalScrollIndicatorPositionTop = 1 << 3,
} JMOScrollIndicatorPosition;
typedef enum {
JMOScrollIndicatorTypeClassic = 0, //Default
JMOScrollIndicatorTypePageControl
} JMOScrollIndicatorType;
[scrollView enableCustomHorizontalScroll];
[scrollView4 enableCustomScrollIndicatorsWithScrollIndicatorType:JMOScrollIndicatorTypeClassic
positions:JMOHorizontalScrollIndicatorPositionTop
color:[UIColor orangeColor]];
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
[scrollView refreshCustomScrollIndicatorsWithAlpha];
}
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
[UIView animateWithDuration:0.25 animations:^{
[scrollView refreshCustomScrollIndicatorsWithAlpha:0.0];
}];
}