title: how to use the UISlider and how to set the slider on a particular values?
body: <p>i am using an UIslider first time.
  first i want to know how to gat value of slider positon if the range of value is 0 to 10:</p>
  
  <p>second i want my slider just set at 5 different values .
  like 1, 2, 3, 4, 5</p>
  
  <p>slider should not set between the labeled value
  <img src="https://i.stack.imgur.com/O6WIl.png" alt="enter image description here"></p>