English 中文(简体)
Obj C - 如何规范滑坡与IKSlideShow之间的间隔
原标题:Obj C - how to customise the interval between slides with IKSlideShow

我对目标-C和可可来说非常新,但我已经做了一个简单的评估,利用IKSlideShow阶级介绍幻灯。 然而,我只想一把我认为很简单的东西 st起来。 我想增加幻灯在滑坡时在屏幕上展示的照片的时间,但我看不出如何有效地这样做。

IKSlideshowDatasource protocol 让你在“滑坡道”看来是这样做的最佳场所时,做些什么,但我却试图在下述情况下造成各种拖延:

while ( functionShouldPause )
    {
        [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:20]];
        functionShouldPause=NO;
    }

然而,它们阻止用户手工移动滑坡,或留下幻灯。

非常感谢任何建议。 感谢!

最佳回答

如果有其他人想要知道的话,可以这样做(尽管我不敢建议采用我的方法,因为使用私人通行证)。

如果你利用舱位提取IKSlideShow的头盔文件,你将学会,IKSSPanel.h控制屏幕游戏、pa等,IKSlideShowHandler.h控制幻灯。 将两位负责人纳入你们的项目。

如果你在被点击时推翻了国际科索沃安全局的分机方法,你可以在那里获得,并改变控制滑坡所展示时间的汽车价值,然后利用滑坡手工艺冲走滑坡。

也许有一个更清洁的解决办法,但这似乎对我来说是好的。

#import "IKSSPanelUtils.h"


@implementation IKSSPanel (utils)

- (void)slideshowPlay:(id)sender
{
    NSLog(@"This method overrides the IKSSPanel SlideshowPlay method");
    NSLog(@"Setting the autoPlayDelay to 20 seconds");

    _slideshowHandler.autoPlayDelay=20;
    [_slideshowHandler startAutoPlay];

}
@end
问题回答

暂无回答




相关问题
2 mysql instances in MAC

i recently switched to mac. first and foremost i installed xampp. then for django-python-mysql connectivity, i "somehow" ended up installing a seperate MySQL. now the seperate mysql installation is ...

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Controlling OSX windows

I m trying to control windows of a foreign OSX applications from my application. I d like to 1. move the windows on the screen 2. resize the windows on the screen 3. change the currently active window ...

Switching J2SE versions on Mac OS (SnowLeopard)

My current JDK on Mac OS (10.6) is set to 1.6 and I d like to switch to 1.5. A listing of /System/Library/Frameworks/JavaVM.framework/Versions/ shows: lrwxr-xr-x 1 root wheel 10 Nov 3 18:34 ...

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

export to MP3 from quicktime API

A question for Apple,QT programmers. Would like to know if it s possible to export a Movie object to MP3 using the QuickTime API. Preferably the ConvertMovieToFile function. I ve looked at ...

热门标签