Posts

Showing posts with the label UI slider in iOS

How To Create UI Slider In iOS (Swift 3 + Xcode 8) ?

Image
How To Create UI Slider In iOS?? Hi, In this tutorial, I’ll show you how to use sliders in your iOS apps. Its super easy to learn and implement. So, without wasting any time, let’s start and see how to do it. :) First of all, open your Xcode and create a new Single View Application.  Give some name to your product and make sure to choose Swift as the language. Click Next. Now, open Main.storyboard and drag 2 objects on your view controller. First drag a Slider (which is of course if you want to use sliders :| ) and then drag a label to display the values of this slider. Now, add some constraints on both of these objects. For example, you can add following constraints on your label: Similar way, add some constraints on the slider as well. You can add following constraints on your slider: Also, don't forget to assign default, minimum and maximum values to your slider from attribute inspector as shown in the picture below: Now, cl...