Working with Table View Controllers in Swift

Aasif
By Aasif | December 8, 2021 6:01 pm  | 5-min read

In this tutorial I’ll show you step-by-step how table view controllers work, and how you can use them. We’ll go into the full gamut of UITableViewController, by diving into Object-Oriented Programming, delegation and the behind-the-scenes mechanisms of table views. A table view controller displays structured, repeatable information in a vertical list. You use the UITableViewController class in your iOS app to build a table view controller. Working with a table view controller also mean [...]

Read More

Working with @Binding in SwiftUI

Aasif
By Aasif | December 8, 2021 4:58 pm  | 4-min read

A binding in SwiftUI is a connection between a value and a view that displays and changes it. You can create your own bindings with the @Binding property wrapper, and pass bindings into views that require them. In this tutorial, we’re going to discuss how bindings work in SwiftUI. Here’s what we’ll get into: What’s a binding and why do you need them? The difference between a binding and @Binding How to get a binding from other property wrappers, like @State Which property wrappe [...]

Read More

Understanding The «Unexpectedly found nil while unwrapping an Optional value» Error

Aasif
By Aasif | December 8, 2021 4:28 pm  | 4-min read

Optionals are a great feature of Swift, but if you don’t unwrap them safely you’ll run into the Unexpectedly found nil while unwrapping an Optional value error. How can you solve this error? In this tutorial, you’ll learn about: Optionals and how to use them Fixing the Unexpectedly found nil while unwrapping an Optional value error Safely unwrapping optionals Understanding optionals, and fixing bugs, is an important part of iOS development. It’s critical to understand optional [...]

Read More

How to Create a Free Apple Developer Account

Aasif
By Aasif | December 8, 2021 3:41 pm  | 4-min read

If you want to run your iOS apps on your iPhone or iPad, you’ll need a free Apple Developer Account. Since Xcode 7, you can use your Apple ID to run and install your own apps on iPhone and iPad. You’ll still need a paid Developer Program membership to publish apps in the App Store, and to use App Store Connect. In this tutorial, we’ll discuss: How to get a free Developer Account with your Apple ID Connecting Xcode on your Mac to your new Developer Account Running (“sideloading” [...]

Read More

How To: Working with Plist in Swift

Aasif
By Aasif | Last Updated on December 8th, 2021 7:39 pm | 4-min read

A property list, commonly abbreviated as plist, is an XML file that contains basic key-value data. You can use a plist in your iOS apps as a simple key-value data store. Let’s find out how that works! In this tutorial we’ll dive into: What a property list is, and how you can use it How to read from and write to a property list What Info.plist is, and why it’s useful How to encode and decode property lists with Codable Table of Contents What’s a Plist? Reading a Plist wi [...]

Read More

Most Popular Posts