This post compatible with Xcode 6.3 Beta, Updated on February 16, 2014 This is part three of a tutorial series covering the usage of Core Data in Swift to write iOS apps with persistence. If you haven’t read part one yet, read that first. If you really want to get your feet wet, my Swift…
Category: iPhone Development
Tutorials and news about the iPhone Development world
Core Data in Swift Tutorial (Part 2)
This post compatible with Xcode 6.3, Updated on February 16, 2015 This is part two of a tutorial series covering the usage of Core Data in Swift to write iOS apps with persistence. If you haven’t read part one yet, read that first. If you really want to get your feet wet, my Swift book…
Core Data in Swift Tutorial (Part 1)
This post compatible with Xcode 6.3 Beta, Updated on February 16, 2015 Don’t have 6.3 yet? Make sure to download it here using your iOS Developer account. Core Data is the de facto standard way to persist and manage data in both iPhone and Mac applications, and with Swift it’s a bit easier. So it’s…
Taking control of the iPhone camera in iOS 8 with Swift (Part 2)
Using the AVFoundation API, we are going to set up a capture session and make an app that allows us to use all the new fine-grained controls added to iOS 8. This includes manually controlling focus, exposure, and ISO. First off, we just need to set up a basic camera preview. In Part 1, we…
Taking control of the iPhone camera in iOS 8 with Swift (Part 1)
Updated on September 20, 2014 for Xcode 6 GM Using the AVFoundation API, we are going to set up a capture session and make an app that allows us to use all the new fine-grained controls added to iOS 8. This includes manually controlling focus, exposure, and ISO. First off, we just need to set…
Swift’s Nil Coalescing Operator In Xcode 6 Beta 5
I was just updating my tutorial series on developing iOS 8 apps in Swift for Beta 5, and I was looking at this bit of code: var name = result[“trackName”] as? String if !name? { name = result[“collectionName”] as? String } The code is setting name to the result[“trackName”], if it can successfully cast to…
Access Control In Swift
Updated December 21 for Xcode 6.1.1 The Swift feature of Access Control is really important from a software architecture perspective, because it allows us to properly implement encapsulation. Without the ability to hide members and methods of classes, it’s very easy to accidentally (or not) reach in to classes and mess with internals that were…
Making a POST request in Swift
This post updated September 16 for Xcode 6 GM Let’s say you’re working on an iOS app where you need to pass data to a server as JSON. Just about every app that interacts with a server does this, and almost always there is a login API call. For the purposes of this tutorial, I’m…
Developing iOS 8 Apps Using Swift – Animations, Audio, and Custom Table View Cells (Part 7)
This section completely updated to reflect changes in Xcode 6.3, as of April 17, 2015 In parts 1 through 6 we went over some basics of Swift, and set up a simple example project that creates a Table View and a puts some API results from iTunes inside of them. If you haven’t read that…
Developing iOS Apps Using Swift Part 3 – Best Practices
This section completely updated to reflect changes in Xcode 6.3, as of April 16, 2015 In parts 1 & 2 we went over some basics of Swift, and set up a simple example project that creates a Table View and a puts some API results from iTunes inside of them. If you haven’t read that…