Category: Swift

UICollectionView with Section in Swift (XCODE)

In this tutorial I am going to create CollectionView with 3 Sections in Swift Programming language. This code can be used to develop your iOS application (1) First create single view application in XCODE and drag and drop the UIViewController from Object Library into the default ViewController which you find in Main.storyboard file (2) Select […]

Read more

How to use CollectionView in Swift

In this tutorial we will see how we can use UICollectionView in Swift for iOS app development UICollectionView is very similar to the UITableView. UICollectionView can show multiple columns and it supports horizontal scrolling Now we will build simple app to understand UICollectionView (1) First create a single view application using XODE (2) Now you […]

Read more

Display AlertController with Image in Swift (XCODE 8.3)

In this article we will see how we can add image to Alert Controller in iOS app You can show the UIAlertController with UIImage in iOS Apps. Following image shows how you can show the image on UIAlertController Now you can use the following code to implement above Alert View

Read more

Image Resize in Swift

You can use the following code to resize the image when you develop iOS applications. Following code is written in Swift 3 code

This is an extension for the UIImage class

Read more

Display AlertController with ActionSheet in Swift (XCODE 8.3)

You can display list of items (Action Sheet ) with the UIAlertController in the iOS application In the following example I have created Alert Controller to select the theme. This is the Swift code required to make the Alert Sheet in your iOS app development

Read more

Display Alert with UITextField Entry in Swift (XCODE 8.3)

In your iOS application you often have to display alert window (UIAlertController) with TextField on it.

First you create UIAlertController object and then you can create UIAlertAction object which can be added to UIAlertController object To add TextField to UIAlertController you can use uiAlertControl.addTextField(configurationHandler: nil)

Read more

Add Header and Footer to UITableView in Swift 3 (XCODE 8.3)

In this tutorial I am going to show you how to add Header and Footer to UITableView using Swift. So you can reuse this code when you develop the iOS applications At the end of the tutorial you can build single view application like this (1) First create a single view application from the XCODE […]

Read more

Swipe Deletion of Table View Cells in UITableView with Swift

In this example I am going to show you how to delete table row with swipe in iOS devices Now I am going to delete row from the following table If you are not familiar with UITableView you see this article to study how to develop UITableView with data We have the following code already […]

Read more

Core Data with Swift in iOS App Development

Core Data is a framework which you can use to manage Data or Model To work with following code, you need to create single view application. Please select the core data check box when you create the project Then you have the coredataex.xcdatamodeld to create the Entity and its attribute Here I have created the […]

Read more

Core Data example in Swift

In this article I am going to explain you how you can use Core Data when you are developing Apps in Swift (1) First create single view application Please select the core data check box when you create the project

Read more