https://github.com/fromkk/fkslideshowview
https://github.com/fromkk/fkslideshowview
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fromkk/fkslideshowview
- Owner: fromkk
- License: mit
- Created: 2015-11-10T07:46:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-12T10:04:03.000Z (over 10 years ago)
- Last Synced: 2025-02-03T14:28:02.369Z (over 1 year ago)
- Language: Objective-C
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
```