After creating an iOS project, one of the first thing you will do is rename the Swift or Objective-C class file. You will learn how to do that in this workshop. Say you wanted to rename a Swift class file called ViewController class file to MainViewController, you cannot use Xcode’s Refactor menu item to rename it. If you do, […]
In this workshop you will learn the basics of declaring, initializing, and accessing elements of a swift array. You will also learn how to manipulating elements of an array. Before you begin, I assume you have done the following: Read workshop 1-17 Launched the project, Swift Variable.xcodeproj in Xcode 6 IDE-see image below A Swift array is a collection of […]
A tuple in swift is a collection containing values of varying types (Int, String, Double, Float, Bool) or the same type (Bool, Bool) . A Tuple element indices are zero-based. The first element of a non-empty tuple is always t(0). Declare and Initialize a Tuple You declare and initialize a tuple like this: Access a Tuple Values […]
This is the final workshop in the Using Core Data series. You will learn how to implement the ability for the app user to update attributes of a managed object in the persistent store. Setup The Book Detail Scene In order to enable app user to update attributes of a managed object in the persistent […]