Category Archives for Foundation

UserDefaults

UserDefaults

UserDefaults are a great way to persist a small amount of data. In this post we will discuss all the things you need to know.

Continue reading
NSTimer

NSTimer – Repeat

The NSTimer class is a workhorse of iOS applications, but it is also complex, fraught with hidden gotchas and cumbersome to use. For example, when a timer expires, its callback mechanism consists of performing a selector on a target object, which doesn’t work with a pure Swift class (or struct, etc.) and forces us to […]

Continue reading
NSBlockOperation

A Simple BlockOperation Example

Concurrency is a very interesting topic and there are many situations where you should use it in iOS development. Sometimes it is the only way to provide a responsive UI to the user. In Swift there is no language feature for concurrency yet. However, the iOS SDK provides you different concurrency APIs. In this post we’ll look at […]

Continue reading

NSURL and NSURLComponents

NSURL and NSURLComponents are classes for handling URLs (Uniform Resource Locator). In this post we discuss the most important features of these classes.

Continue reading