Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在故事板编辑器中,可以为 UISlider 设置“当前”值。在滑块的值更改后,有什么方法可以将此值用作重置值?如果没有,我想我会创建一个属性来存储默认值。
要在程序执行期间访问各个点的滑块值,请使用该value属性获取滑块的当前值。
value
这是文档:http: //developer.apple.com/library/ios/#documentation/uikit/reference/UISlider_Class/Reference/Reference.html