By default, when I observe the value of a UISlider, it only updates once, when the slider is clicked, not continuously, even thought that is the slider's setting. Is there a way to get the continuous value change of the slider?
相关问题
- Image loads in simulator but not device?
- UIModalTransitionStyleFlipHorizontal flips Vertica
- Xcode4 templates now use underscore on iVars?
- KVO (IOS 5) on simple types (non NSObject)
- How can i associate an IBAction event with an imag
相关文章
- Xcode: Is there a way to change line spacing (UI L
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- How to get a CGImageRef from Context-Drawn Images?
- Why are my UIView layer properties not being set w
- create UIImageView
- Can I add a border to an SKSpriteNode, similar to
- textFieldDidBeginEditing: for more than one textfi
- UIView subclass draws background despite completel
the continuous updating applies to the calling of the target method of the "value changed" event on the slider. I don't know how to do this with KVO
UIKit doesn't actively support KVO. You may be getting lucky in that some notifications may make it through the usual mechanisms, but for the most part you shouldn't assume you can use KVO with any UIKit class.
You should instead get your continuous events through the UISlider's associated target's action method.