UISlider.setMaximumTrackImage bug
| Originator: | an00na | ||
| Number: | rdar://33060065 | Date Originated: | June 29 2017, 2:20 PM |
| Status: | Open | Resolved: | |
| Product: | Documentation | Product Version: | |
| Classification: | Serious Bug | Reproducible: |
The doc says: Because the movement of the slider’s thumb changes the width of the area occupied by the maximum track image, the image width must change accordingly. To accommodate this requirement, specify track images as stretchable images that can grow or shrink to fill the available space. For information about how to create stretchable images, see UIImage. I guess it is just copied from the doc of setMinimumTrackImage with "minimum" replaced by "maximum". However the reality disagrees. The width of the area occupied by the maximum track image is not affected by the position of slider’s thumb. It is always the whole width of the slider. I'm not sure whether it is a documentation bug or implementation bug but they conflicts with each other. From my understanding of how it should work I preferred to think it is a documentation bug. Steps to Reproduce: 1. Launch sample app. 2. Slide the thumb to see that only the minimum track image stretches. Code: https://mega.nz/#!IGZ2UbJA!JvyQVH5whr67JouHqSxbWyBWxfm0GMFAY4bkiAP5SaQ
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!