AboutContact

SwiftUI: how to download and parse json data and display in a list using the swift UI PreviewProvider

In this new SwiftUI tutorial you will learn with a simple example how to asynchronously download json data from an url, parse the data using the new Swift decodable struct utility, how to use the SwiftUI to define a custom ...
Read

Swift 4: Coding and Decoding JSON structure with the Encodable and Decodable protocols

In this new tutorial you'll learn how to decode and encode a json object using the new Encodable and Decodale protocols (defined in the new Codable type), and how to do a custom decoding by doing some data manipulation during ...
Read

How to create a Facebook Gmail like sidebar menu in IOS with swift 3 and handle the view hierarchy

In this swift 3 tutorial you'll learn how to create a Facebook / Gmail like sidebar menu. You'll see with an example how to add the gestures to handle the sidebar menu, how to manage the side menu in order to add ...
Read

How to create a login screen page in swift 3: authenticate an user and keep the session active

In this new swift 3 tutorial you'll learn through an example how to create a simple login sign in screen page, how to send the login information with the HTTP post method to your server to start a new session for your ...
Read

UIRefreshControl: how to use the iOS UITableView pull to refresh in swift 2

In this new swift tutorial you'll see how to implement the pull to refresh iOS functionality for a UITableView using the UIRefreshControl component. In this tutorial you'll see how to download data from an external url using the NSUrlSession swift ...
Read

How to upload images using swift 2: send multipart post request

In this new iOS 9 tutorial you'll see how to upload an image to a server with a multipart post request using swift 2. You'll see how to allow the picture selection from the device gallery using the UIIMagePickerController and how ...
Read

Swift data structure: how to create, sort, filter array of objects in swift

In this tutorial you'll see how to creare in swift complex data structure of array and objects and how to properly manage them. You will see how to define a data structure, how to add new items, how to filter ...
Read

How to parse and extract json data in swift

In this new swift 2 tutorial you'll learn how to parse json data structure in order to send complex data structure as a String to an external server. You'll see how to prepare the array of objects to send and how ...
Read

Swift try catch example: how to do error handling in swift

In this new swift tutorial you'll learn how to use the new swift 2 try catch syntax, to perform error handling. You'll learn how to use the try, catch, throws, enum and guard statement in order to perform a good ...
Read

Protocol delegate in Swift: how to define and use a protocol function to handle external events

In this tutorial you'll learn with a basic example how to use a protocol in Swift to handle events coming from an external class. You'll see how to define a protocol function in Swift, how to the define the delegate of the ...
Read

iOS push notification: how to send messages and get the certificate Part 1/2

In this two parts tutorial for Swift 2.0 you'll learn how to use the push notifications in iOS. You'll see how to properly get from the Apple member center the required certificates. In particular, the certificates that you need to ...
Read

UICollectionView image gallery: download and display images inside the cell

In this Swift 2 tutorial you'll see how to use an UICollectionView as an image gallery. You'll see how to download the images in an asynchronous way, how to properly cache them for the current session, to avoid to download them again ...
Read

NSURLSession in Swift: get and post data

In this new Swift 2 tutorial you'll learn how to use the NSURLSession Swift function. You'll see different examples that illustrate how to define the different NSURLSession methods in various scenario, for downloading data or sending post requests. VIDEO_3Q7v5V4N7dk_VIDEO Let's start this new tutorial by creating ...
Read

iOS UIScrollView in Swift

In this tutorial you'll learn how to use the UIScrollView component in Swift. In this simple example you'll see how to properly define the UIScrollView and the required constraints into the storyboard, in order to have a working UIScrollView. Here is the example ...
Read

Swift cache: how to download and cache data in iOS

You'll learn how to cache data in swift by developing a local cache based on core data for the downloaded data. You'll see through an example how to define a custom Table View for iOS using Swift, how to load the json data that define ...
Read

Swift image from url: How to load UIImage from url

In this tutorial you'll see through an example how to load image from url using Swift. You'll see how to add in the storyboard the UIImageView component, how to load the image programmatically from URL and how to display the image data ...
Read

UITableView custom cell: how to define a custom cell with swift in iOS

You'll learn how to define a custom UITableView cell in swift for iOS. You'll see the main steps to design and define a custom UITableView cell, a custom uitableview header and an uitableview footer sections.  This is the example for custom UITableView cell you'll obtain using ...
Read

UICollectionView custom cell layout: how to define a custom cell with swift

In this tutorial you'll learn how to define an UICollectionView custom cell layout for iOS 8 with swift. You'll see the basic steps for defining a collection view, a custom cell layout and data loading from url using the JSON format. VIDEO_KuHBBAJPePg_VIDEO This ...
Read

Swift Side menu tutorial: how to create a custom side menu in iOS

In this tutorial you'll see how to create a custom side menu for your iOS app using Swift. You'll learn how to define your custom container view that manages the center view and the side view, how to define a protocol ...
Read

Swift core data: how to store objects

You'll learn how to store data in swift using the core data entity. You'll see how to use core data to save, read data and clear data from your iOS app. We'll see a simple example that shows how to define an entity ...
Read

Swift UITableView: Load data from JSON

In this tutorial I'll explain you how to fill an iOS UITableView component by loading the data directly from an URL using the JSON format. You'll see how to define a tableview controller in swift, how to load the data ...
Read

UIImage from URL with Swift

UIImage from URL tutorial: If you are new in Swift for iOS 8 and you want to load an image in a UIImage view from URL, then you are in the right place. In this tutorial you'll learn how to ...
Read
AboutContactPrivacy