diff --git a/README.es-ES.md b/README.es-ES.md new file mode 100644 index 0000000..01c39fe --- /dev/null +++ b/README.es-ES.md @@ -0,0 +1,83 @@ + + +# GoAutoSlideView + +[![Version](https://img.shields.io/cocoapods/v/GoAutoSlideView.svg?style=flat)](http://cocoapods.org/pods/GoAutoSlideView) +[![License](https://img.shields.io/cocoapods/l/GoAutoSlideView.svg?style=flat)](http://cocoapods.org/pods/GoAutoSlideView) +[![Platform](https://img.shields.io/cocoapods/p/GoAutoSlideView.svg?style=flat)](http://cocoapods.org/pods/GoAutoSlideView) + + +`GoAutoSlideView` extiende `UIScrollView` *desliza*ndo *infinita y automáticamente*. + +#ScreenShot +![Screenshot](./Screenshots/screenshot.gif "captura") + +## Instalación +###CocoaPods +```ruby + +pod 'GoAutoSlideView', '~> 0.7' + +``` + +###Manually +1. Descarga los archivos fuente en el directorio `GoAutoSlideView/Classes`. +2. Agrega los archivos fuente a tu proyecto. +3. Importa `"GoAutoSlideView.h"` en tus archivos. + +## Uso +#### Crear GoAutoSlideView + +```objc + +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]; + +``` + +#### Implementar GoSlideViewDataSource + +```objc + +- (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; +} + +``` + +#### Implementar GoSlideViewDelegate + +```objc + +- (void)goAutoSlideView:(GoAutoSlideView *)goAutoSlideView didTapViewPage:(NSInteger)page{ + NSLog(@"didTapViewPage at index: %@", @(page)); +} + +``` + +## Contribuir + +1. ¡Haz un fork! +2. Crea tu rama de características: `git checkout -b mi-nueva-característica` +3. Confirma tus cambios: `git commit -am 'Agregar alguna característica'` +4. Sube a la rama: `git push origin mi-nueva-característica` +5. Envía una solicitud de extracción :D + +## Créditos + +* zjmdp + +## Licencia + +Licencia MIT