0

I'm just starting to program games for iOS with Objective-C, and I'm trying to figure out how to make a slider whose thumb moves back and forth at a random speed. I can't find anything online, maybe I just don't know the right term to search for.

Does the UIKit slider have a built in method to make the slider thumb move back and forth without user input, or would I have to write something myself? What I'm trying to do is build a game where the slider moves back and forth slowly at first, then as you get further into the game the thumb moves faster.

Thanks!

4

1 回答 1

0

好吧,如果您正在制作游戏,正如您所说,就 UI 而言,使用 UIKit 对象可能不是可行的方法。不过,只是我的看法。

但如果这是您正在寻找的内容:http: //developer.apple.com/library/ios/#documentation/UIKit/Reference/UISlider_Class/Reference/Reference.html

祝你好运!

于 2013-04-27T23:20:55.963 回答