Skip to content

iosbrain/Error-Handling-with-iOS-Files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Error Handling with iOS Files

An Xcode 9 playground written in Swift 4 code that explores Error Handling when manipulating the iOS file system.

The code in this playground is discussed in at least three of my tutorials: 1) "iOS file management with FileManager in protocol-oriented Swift 4", 2) "Controlling chaos: Why you should care about adding error checking to your iOS apps", and especially in 3) "Controlling chaos: Error Handling in Swift 4 with do, try, catch, defer, throw, throws, Error, and NSError".

By reading and running this code, and reading the accompanying tutorials, you will gain insight and experience in several core software development concepts.

For example, I'll show you how you can successfully write maintainable, reusable, and extensible code using Swift protocol-oriented programming or "POP" (read my articles on protocols, an introduction to POP, using advanced POP, and value semantics).

I'll teach you how to read, write, delete, rename, and move files in a iOS sandboxed app.

I'll demonstrate how you handle errors while working with the iOS file system.

Here are some examples of this playground in action

alt text

alt text

alt text


Copyright (c) 2018 Andrew L. Jaffee, microIT Infrastructure, LLC, and iosbrain.com.

Releases

No releases published

Packages

No packages published

Languages