An open API service indexing awesome lists of open source software.

https://github.com/fromkk/fkslideshowview


https://github.com/fromkk/fkslideshowview

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# FKSlideshowView

---

## Description

UIImageをNSArrayで渡すと自動的にスライドショーを行います。
現在はクロスフェード・左スライド・右スライド・ズームイン・ズームアウトに対応しています。
randomプロパティをYESにすればいずれかのエフェクトが表示されます。

---

## Usage

```Objective-C
NSArray *images = @[...]; // NSArray
FKSlideshowView *slideshowView = [[FKSlideshowView alloc] initWithImages:images];
slideshowView.duration = 8.0f;
slideshowView.fade = 0.3f;
slideshowView.type = FKSlideshowTypeSlideLeft; //左スライドエフェクト
slideshowView.zoom = 2.0f; //ズームの倍率
slideshowView.random = YES; //Random effect
self.view.addSubview(slideshowView);
[slideshowView play];
```

---

## Public Methods

```Objective-C
- (instancetype)initWithImages:(NSArray *)images;
- (void)play;
- (void)pause;
- (BOOL)playing;
```