Draw route on iOS map using MKDirections in swift

Introduction to draw route on iOS map (MapKit) using MKDirections in swift4 In this tutorial, we are going to learn how to to draw route on MapKit (apple map) between two locations using swift language. We will use MKAnnotation’s to draw pins for source and destination. For getting route, we will use MKDirection class and …

Draw route on iOS map using MKDirections in swift Read More »

Get user current location in swift

Introduction to the post get user location in swift4 using CLLocationManager In this tutorial, we will learn how to get user current location in swift. For getting user location, we will use Corelocation framework for location updates and Mapkit framework to show user current position on map. We wil use apple default map not Google …

Get user current location in swift Read More »

Convert pdf & images to base64 string swift 4

Introduction to convert PDF and images to base64 string While developing iOS apps and if there is a need of uploading image, documents like PDF, excel doc, word doc to server(central database for our app) either we prefer byte data to be uploaded or API requires to upload documents(images, PDF,  excel, word documents) in base64 …

Convert pdf & images to base64 string swift 4 Read More »

Add custom checkbox on UITableViewCell

Add custom checkbox on UITableViewCell or UITableView in swift In this tutorial, we are going to learn about, how we can add custom checkbox on UItableViewCell or UITableView in swift. And we also perform IBAction on our custom checkbox placed on UITableViewCell. We will place UIButton on UITableViewCell that will act as checkbox for our …

Add custom checkbox on UITableViewCell Read More »

Email address validation in swift

Introduction to email address validation in swift In this tutorial, we will learn how to add email address validation in swift4. We will use NSPredicate with regex to validate email of format “xxx@xx.xxx”. Also, how to validate an empty UITextField in swift using guard statement. Let us jump to the tutorial and learn how to …

Email address validation in swift Read More »

How to create checkbox in swift – tutorial

Introduction to How to create check box in swift – tutorial In iOS, there is no default uicontrol for creating check box. Thus we have to create our own check box in swift, to use in our iOS apps by using other uicontrol’s like UIButton. In this tutorial, we will learn how to create check …

How to create checkbox in swift – tutorial Read More »

How to create csv file in swift programmatically

Introduction to how to create CSV file in swift programmatically As the heading of this tutorial says, we are going to learn how to create csv file in swift programmatically. CSV(comma separated values) or excel files as they are commonly known are not a difficult task in iOS app development using swift. In this post, …

How to create csv file in swift programmatically Read More »

Create UITabBarController programmatically in swift

Introduction UITabBarController UITabBarController is the  controller that has tabs or tabbar at the bottom of the screen and menu items displayed with either text, images plus text or only images. These menu items are known as UITabarItems in technical language. You can take the example of shopping apps or workouts app which contains the bottom …

Create UITabBarController programmatically in swift Read More »

Multiple component UIPickerView in swift 4

      Multiple component UIPickerView in swift Multiple component UIpickerView in swift has two columns or two wheels that the user manipulate to select items. Basically, UIPickerView act as dropdown that is a list full of options. In this tutorial, we will learn how to create multiple component UIPickerView using swift language. Steps to …

Multiple component UIPickerView in swift 4 Read More »