https://github.com/suda/slideshowview
Simple slideshow view in Cocoa Touch
https://github.com/suda/slideshowview
Last synced: about 1 year ago
JSON representation
Simple slideshow view in Cocoa Touch
- Host: GitHub
- URL: https://github.com/suda/slideshowview
- Owner: suda
- Created: 2012-01-03T15:19:58.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-09-24T09:17:52.000Z (over 11 years ago)
- Last Synced: 2025-03-20T15:09:45.880Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 102 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SlideshowView
=============
Simple slideshow view in Cocoa Touch.
Example usage: http://www.youtube.com/watch?v=c4s84iph1Ms
Usage
-----
slideshow = [[SlideshowView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)];
[slideshow setImages:[NSArray arrayWithObjects:
@"1.jpeg",
@"2.jpeg",
@"3.jpeg",
nil]];
// 20 pixels per second
slideshow.animationPace = 20.0;
// 2 seconds between images
slideshow.fadeDuration = 2;
// Linear scroll and fade
slideshow.animationCurve = UIViewAnimationCurveLinear
[[self view] addSubview:slideshow];
Todo
----
* Different directions of animation
* Restarting animation
LICENCE
-------
Copyright (C) 2012-2014 Wojtek Siudzinski , [Appsome](http://appsome.co)
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0