In part two we’ll add event actions for when the values change, and fix up the UI from where we leave it in Part I. Part one will cover the basics of initial setup, graphics, code, adding the touch events to drag the thumbs. I’d give yourself a minimum of an hour to work through this one. It takes a fair bit of work to get a range slider just right, but once achieved you’ll be able to reuse it in any project you need. Here’s a peek at what we’re going to create over this two part tutorial.Īnd here it is in action, thanks to Martin Wawrusch. The answer, most of the time, is to create a range slider, something that isn’t in the default range of iOS controls. Should you provide two sliders? One for the minimum range and one for the maximum range? This is sacrificing usability and screen space, and generally isn’t an ideal outcome. Things get a little complicated when you want to create a range of values however. It’s a great, all purpose slider, that allows you to quickly swipe your finger along the screen to set a value. One of the commonly used iOS controls is the slider control.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |