Updating UISlider range does not leave value in range
| Originator: | robnapier | ||
| Number: | rdar://10584191 | Date Originated: | 14-Dec-2011 08:42 PM |
| Status: | Open | Resolved: | |
| Product: | Product Version: | ||
| Classification: | Reproducible: |
Summary:
Updating UISlider.minimumValue and .maximumValue to values outside the previous range leaves .value outside the new range.
Steps to Reproduce:
- (IBAction)update:(id)sender {
NSLog(@"(BEFORE) min=%f max=%f current=%f", self.slider.minimumValue, self.slider.maximumValue, self.slider.value);
self.slider.minimumValue = 10;
self.slider.maximumValue = 20;
NSLog(@"(AFTER) min=%f max=%f current=%f", self.slider.minimumValue, self.slider.maximumValue, self.slider.value);
}
Expected Results:
(BEFORE) min=0.000000 max=1.000000 current=0.500000
(AFTER) min=10.000000 max=20.000000 current=10.000000
Actual Results:
(BEFORE) min=0.000000 max=1.000000 current=0.500000
(AFTER) min=10.000000 max=20.000000 current=1.000000
Regression:
Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!