[Instruments: UIAutomation] UIASlider's dragToValue function drags to the wrong value on iOS 7
| Originator: | feedback.tagher | ||
| Number: | rdar://16738650 | Date Originated: | 27-Apr-2014 05:20 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 5.1.1 (55045) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When using UIASlider's dragToValue function, the thumb of the slider jiggles and goes to the wrong value (see this GIF: http://maxgabriel.github.io/images/uiasliderBug2.gif ) note how when the value is set to 1 the slider actually ends up at ~0.8. Steps to Reproduce: 1. Unzip the attached sample project and open the .xcodeproj (or else clone the repo here https://github.com/MaxGabriel/UIASliderBug) 2. Select the iOS 7 simulator (I used retina 4 inch, 32 bit) 3. Run Instruments (command+I) and choose the Automation template 4. From the scripts area of the left sidebar, choose 'import' and choose the UIAutomationScript.js file (included in the zip or in the repo) 5. Press the 'run/record' button in the top left Expected Results: The slider smoothly slides to the given values in the script. Actual Results: The slider jiggles when sliding to some values, and ends at the incorrect value. Version: Xcode Version 5.1.1 (5B1008) Instruments Version 5.1.1 (55045) OS X 10.9.2 Build 13C1021 Notes: This is possibly a duplicate of http://openradar.appspot.com/15723925 but I am unable to confirm because the mentioned videos look to have been included in the original Radar, but not in the OpenRadar report. Configuration: The `dragToValue` function works correctly on iOS 6. I have replicated the problem on iOS 7 and 7.1 Of note is that sometimes the function works—note in the attached/linked GIF that it slides to 0.9 correctly, but fails to slide to 0.5 or 1.0 correctly. Potentially it only has problems with some values? However, I am able to replicate it using the value 1.0 every time. Attachments: 'uiasliderBug2.gif' and 'TestSlider.zip' were successfully uploaded. // The gif is available at the link above, and the sample project is in the github repo above.
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!