Latest 0.1.1
Homepage https://github.com/leverdeterre/CustomScrollIndicator
License MIT
Platforms ios 4.3, requires ARC
Frameworks QuartzCore
Authors

An iOS customizable ScrollIndicator

Twitter
License MIT
CocoaPods

  • allows to customize UIScrollView scroll indicators,
  • Only one category

Image
Image

Enum to configure indicator positions

typedef enum {
  JMOVerticalScrollIndicatorPositionRight     = 1 << 0, //Default for vertical
  JMOVerticalScrollIndicatorPositionLeft      = 1 << 1,
  JMOHorizontalScrollIndicatorPositionBottom  = 1 << 2, //Default for horizontal
  JMOHorizontalScrollIndicatorPositionTop     = 1 << 3,
} JMOScrollIndicatorPosition;

Enum to configure indicator type

typedef enum {
    JMOScrollIndicatorTypeClassic = 0, //Default
    JMOScrollIndicatorTypePageControl
} JMOScrollIndicatorType;

Usage … very simple, just enable the customization (with default parameters)

[scrollView enableCustomHorizontalScroll];

With options

 [scrollView4 enableCustomScrollIndicatorsWithScrollIndicatorType:JMOScrollIndicatorTypeClassic 
              positions:JMOHorizontalScrollIndicatorPositionTop 
              color:[UIColor orangeColor]];

Refresh … call methods in your scrollViewDelegate (scrollViewDidScroll is optionnal, KVO did the job)

- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
    [scrollView refreshCustomScrollIndicatorsWithAlpha];
}

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
    [UIView animateWithDuration:0.25 animations:^{
        [scrollView refreshCustomScrollIndicatorsWithAlpha:0.0];
    }];
}

Latest podspec

{
    "name": "CustomScrollIndicator",
    "version": "0.1.1",
    "requires_arc": true,
    "authors": {
        "Morissard Ju00e9rome": "[email protected]"
    },
    "platforms": {
        "ios": "4.3"
    },
    "summary": "Easy way to customize UIScrollView scroll indicator",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/leverdeterre/CustomScrollIndicator",
    "source": {
        "git": "https://github.com/leverdeterre/CustomScrollIndicator.git",
        "tag": "0.1.1"
    },
    "source_files": "CustomScrollViewIndicator/CustomScrollViewIndicator/UIScrollView+ScrollIndicator.{h,m}",
    "frameworks": "QuartzCore"
}

Pin It on Pinterest

Share This