Latest 1.0
Homepage https://github.com/zjmdp/GoAutoSlideView
License MIT (LICENSE)
Platforms ios 7.0
Authors

Version
License
Platform

GoAutoSlideView extends UIScrollView by featuring infinitely and automatically slide.

ScreenShot

Screenshot

Installation

CocoaPods


pod 'GoAutoSlideView', '~> 0.7'

Manually

  1. Downloads the source files in directory GoAutoSlideView/Classes.
  2. Add the source files to your project.
  3. import "GoAutoSlideView.h" in your files.

Usage

Create GoAutoSlideView


GoAutoSlideView *slideView = [[GoAutoSlideView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 250)];
slideView.slideDuration = 5;
slideView.slideDelegate = self;
slideView.slideDataSource = self;
slideView.currentPageIndicatorColor = [UIColor blueColor];
[self.view addSubView:slideView];
[slideView reloadData];

Implement GoSlideViewDataSource


- (NSInteger)numberOfPagesInGoAutoSlideView:(GoAutoSlideView *)goAutoSlideView{
    return 5;
}

- (UIView *)goAutoSlideView:(GoAutoSlideView *)goAutoSlideView viewAtPage:(NSInteger)page{
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 250)];
    [image setImage:[UIImage imageNamed:images[page]]]
    return imageView;
}

Implement GoSlideViewDelegate


- (void)goAutoSlideView:(GoAutoSlideView *)goAutoSlideView didTapViewPage:(NSInteger)page{
    NSLog(@"didTapViewPage at index: %@", @(page));
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

  • zjmdp

License

MIT license

Latest podspec

{
    "name": "GoAutoSlideView",
    "version": "1.0",
    "summary": "GoAutoSlideView extends UIScrollView by featuring infinitely and automatically slide.",
    "description": "GoAutoSlideView which is well documented has neat APIs to implement infinite and automatically slide.",
    "homepage": "https://github.com/zjmdp/GoAutoSlideView",
    "license": "MIT (LICENSE)",
    "authors": {
        "zjmdp": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/zjmdp/GoAutoSlideView.git",
        "tag": "1.0"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This