Posts

Showing posts with the label ui picker view

UI Picker View As Input Type For UI Text Field In iOS (Swift 3 + Xcode 8)

Image
UI Picker View As Input Type For UI Text Field In iOS Hi, In this post, I’ll show you how to create an UI Picker View for UI Text Field in iOS. I am using Swift 3 and Xcode 8 for this tutorial. So, let’s start and see how to do it.. First of all, open your Xcode and create a Single View Application. Now, open your main.storyboard and drag a textfield on your view controller. Add some constraints on this text field as shown in the picture below: Now, create an outlet for your added text field. For that make sure to open up the assistant editor and ctrl+drag the UI textfield to your ViewController.swift file.  Once its done, close the assistant editor and open your ViewController.swift file. Here, first add UIPickerViewDataSource and UIPickerViewDelegate methods in your class declaration as shown below: class ViewController: UIViewController , UIPickerViewDataSource , UIPickerViewDelegate Now, first create your picker view object.  ...

UI Date Picker For UI Text Field With UI Tool Bar (Swift 3 + Xcode 8)

Image
UI Date Picker For UI Text Field With UI Tool Bar In iOS Hi, In this post, I'll show you how to use UI Date Picker for UI Text Field in iOS using Swift 3 and Xcode 8. During this, you'll also get to know about UI tab bar and how to use UITabBar to fetch the details from any picker and set them in desired textfields in your iOS application. FYI, You can also watch this tutorial on my YouTube Channel. You may get a better representation of this swift tutorial over there. Here's the video:                So, let's start and see how to do it.. :) First of all fire up your Xcode and create a new project. Select Single View Application and click Next.  Now, Give some name to your project and choose Swift as language, click Next. Go to Main.storyboard and drag a textfield on the storyboard. Add some constraints on this textfield as shown in the picture below.   After adding these constraints, our storybo...