Blog

In this tutorial, you will learn how to store Key-Value pairs in your apps local storage. For this purpose we will follow the next steps: Create new Flutter App, Get the dependency using pub get, Save data, Read data, Remove data. 1. Create a New Flutter Project Go ahead and create a new Flutter app.…

Read More Store Key-Value Data in Local Storage in Flutter

In this short Swift code example, you will learn how to: Find a Documents directory on iOS device in Swift, Write a String value into a file in the Documents directory on an iOS device. let fileName = “myFileName.txt” var filePath = “” // Fine documents directory on device let dirs:[String] = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.allDomainsMask, true)…

Read More Write String Value Into a File in Swift

In this tutorial, you will learn how to pass arguments from one screen to another using a button click in Flutter. When developing with Flutter you might have seen that almost every screen requires to pass data from one screen to another and might also need to receive data back from another screen. To learn…

Read More Passing Arguments Between Screens in Flutter

In this tutorial, you will learn how to navigate from one screen to another using a button click in Flutter. For this purpose we will follow these steps: Create a new Flutter app Create the UI Create the navigation 1. Create a New Flutter Project Go ahead and create a new Flutter app. If you…

Read More Navigate to a New Screen on Button Click in Flutter

In this short Swift code example, you will learn how to declare a function that can take variadic parameters. We use a variadic parameter to specify that the parameter can be passed a varying number of input values when the function is called. The below code example will cover: Declare a function with variadic parameters,…

Read More Declare a function with variadic parameters in Swift

In this Swift code example, you will learn how to create UIImageView programmatically and how to load an image from a remote URL. Create UIImageView and UIImage programmatically, Load image data from a remote URL, Learn how to use dispatch_get_global_queue to start a background thread, Learn how to use dispatch_get_main_queue to update UI when the…

Read More UIImageView and UIImage. Load Image From Remote URL.

In this Swift code example, you will learn how to create UITabBarController programmatically. We will first create two View Controllers which will be Tab 1 and Tab 2, and then we will create one more View Controller which will serve as UITabBarController and will hold the two tabs. When a user taps on tab 1,…

Read More Create UITabBarController programmatically

In this Swift code example, you will learn how to create and display UICollectionView in Swift Programmatically. The Swift code example in this tutorial will cover the following: Create UICollectionView programmatically, Set UICollectionView layout UIEdgeInsets, Set UICollectionView item size(width and height), Set UICollectionView background color, Set UICollectionView Item background-color, Implement UICollectionView Delegate method didSelectItemAtIndexPath to…

Read More Create UICollectionView in Swift Programmatically

In this tutorial, you will learn how to handle double-tap events on images in Flutter. You not only want to display information to users, but you also want users to interact with your app.  To handle the double-tap event we will use the GestureDetector widget to respond to fundamental actions. To start off we will…

Read More Double-Tap on Image Example in Flutter

In this Swift code example, you will learn how to programmatically create UICollectionView and load a list of images from a remote URL. The below swift code example will cover: Create UICollectionView programmatically Set UICollectionView item size(width and height) Set UICollectionView background color Set UICollectionView Item background-color Implement UICollectionView Delegate method didSelectItemAtIndexPath to handle an…

Read More UICollectionView. Load List of Images From Remote Server Url

In this short Swift code example, you will learn how to determine main screen bounds as well as screen height and width in Swift. Get main screen bounds Get screen width Get screen height // Get main screen bounds let screenSize: CGRect = UIScreen.main.bounds let screenWidth = screenSize.width let screenHeight = screenSize.height print(“Screen width =…

Read More Determine Main Screen Height and Width

Free Video Lessons

Enter your email and stay on top of things,

Subscribe!