SWIFT

Create dynamic height UITableViewCell

Create dynamic height UITableViewCell in Swift In this tutorial, we will learn how to create dynamic height UITableViewCell in Swift. To achieve dynamic height we will create multi line UILabel in UITableView using swift language.                                      We will use the new UITableViewAutomaticDimension property. UITableViewAutomaticDimension property is a handy thing for iOS developers as it sets …

Create dynamic height UITableViewCell Read More »

UIPickerView example Swift – IOS Tutorial

UIPickerView in swift Introduction UIPickerView is common control used to allow user select from a list of drop-down option in IOS apps. In this tutorial we will learn how to create UIPickerView in Swift4 language.                    This UIPickerView tutorial is written in Swift 4 language  so you need xcode 9 and higher version to run …

UIPickerView example Swift – IOS Tutorial Read More »

How to create UIDatePicker in swift – Tutorial

Introduction to UIDatePicker in Swift In this tutorial we are going to learn about UIDatePicker to select a date in swift i.e how to create and use UIDatePicker in swift. UIDatepicker is the control provided by UIKit framework packaged with xcode IDE. It allows user to pick date from the spinning wheel that act same …

How to create UIDatePicker in swift – Tutorial Read More »

How to create NSMutableAttributedString in swift

Introduction to NSMutableAttributedString in swift: NSMutableAttributedString is a great way to customize or decorate UILable text programmatically. For example your requirement involves certain word in the middle of the text is in bold and in different color, what will you do. In this case one can use NSMutableAttributedString class provided in swift language. In this …

How to create NSMutableAttributedString in swift Read More »

How to create UITableview in Swift – Tutorial

Introduction to UITableView in Swift: UITableView is the basic control used in mobile apps. In this tutorial, we will learn how to create UITableView in swift language. All the delegates for the UITableview are same only syntax changes are there in swift language. Let us start how to create UITableView in swift. Implementation of code …

How to create UITableview in Swift – Tutorial Read More »

Custom UIPagecontrol in swift

UIPageControl in IOS is a control that is used mostly in help screens or info screens for IOS apps. In this post, we are going to create a small tutorial for UIPageControl in swift language. And in this tutorial,  we will change background color of UIImageView as per page number selected by user on tapping on UIPageControl. And also, on scroll of …

Custom UIPagecontrol in swift Read More »

Save image to document directory in swift – Tutorial

In iOS, if you need to save image to local disk of iPhone then you need to save it document directory of the app.This post contains tutorial for saving image to document directory using Swift3. Below is the code for saving Image to document directory in swift3 language. Get path of document directory       let …

Save image to document directory in swift – Tutorial Read More »

How to create UIActivityViewController swift

  UIActivityViewController using swift is similar to as we create in objective C , you can read it how to create UIActivityViewController in objective C from  here. This post will give you an example of sharing image through UIActivityViewController in Swift. Sharing image using UIActivityViewController in swift Create a new project and select swift as …

How to create UIActivityViewController swift Read More »