Category: Swift

Swift – sort custom object array

We will see how we can sort the following array filled with products First we will define the product class Now we will create some products and fill to the array If you want to sort the products according the product price you can use the following code This will sort the array according to […]

Read more

Passing data between View Controllers

Stack Over flow guide Using Delegates

Read more

Swift Passing data back to controller

This is the Storyboad for this example and we going o pass data from VC2 to VC1 We have two View Controllers named VC1 and VC2 and corresponding classes are VC1.swift and VC2.swift Create a segue from button from Go to VC2 to VC2 View Controller. Name its identifier as seguevc2 In VC2.swift First we […]

Read more

Types of segues in Swift 3

There are several types of segues you can find in your XCode storyboard There are some differences among them and you can use them according to your requirement # Show # Show Details You can use this in split view controller # Present Modally # Popover Presentation # Custom

Read more

View Navigation with Segue

You can use the Segue to move from one scene to another scene You can follow the following steps to load the screen 2 when you tough on the button Go to 2 Open the Document outline window and right click on the Second View Controller to open the popup window Once you open the […]

Read more

How to Unwind Segue in Swift 3

In this post we will see how to unwind the Segue with Swift code What is Unwind Segue? You can use Segue to go to 2nd View Controller when you touch the button on 1st View Controller If you want to come back to the 1st View Controller you can use Unwind Segue How do […]

Read more

SearchBar to search UITableView in Swift

1 First add the ViewController to your project 2 Add SearchBar 3 Add TableView

Read more

check the data format in Swift coming from Rest API

If you want to check the data fromat coming out from the REST API, you can use the following code

Read more

Simple Webserver in Swift

https://blog.encoredevlabs.com/feature/swift/http-server/2018/04/08/simple-swift-server.html

Read more

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