Obj C - how to customise the interval between slides with IKSlideShow
Posted
by doraemon
on Stack Overflow
See other posts from Stack Overflow
or by doraemon
Published on 2010-06-10T22:20:21Z
Indexed on
2010/06/10
22:22 UTC
Read the original article
Hit count: 186
I'm very new to Objective-C and Cocoa but I've made a simple app which uses ImageKit to present a slideshow using the IKSlideShow class. However I've got a bit stuck with something I thought would be simple. I want to increase the time photos are displayed on screen when the slideshow is playing, but I can't see how to do it effectively.
The IKSlideshowDatasource protocol lets you do stuff when "slideshowDidChangeCurrentIndex" which seems to be the best place to do this - however I've tried putting various delays in here such as:
while ( functionShouldPause )
{
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:20]];
functionShouldPause=NO;
}
However they prevent the user for manually moving on the slides, or leaving the slideshow.
Very grateful for any suggestions. Thanks!
© Stack Overflow or respective owner