Category Archives for Software Architecture

Passing Data Between View Controllers

Passing data between view controllers is a very common task. Depending on the circumstances, there are several ways to accomplish this. 

Continue reading

Swift: Public Properties With Private Setters

In Swift you can easily create public properties with private setters. It makes your code much safer and shorter.

Continue reading

A Trick To Discover Retain Cycles

Although ARC does most of the memory handling work for you, your app can still suffer from so-called retain cycles. So it is very important to discover them.

Continue reading

Hard-to-Reproduce Bugs

Sometimes you encounter bugs that are very hard to reproduce. In this post we discuss the two most common reasons for this kind of bug.

Continue reading

The Strategy Pattern

The strategy pattern gives you the possibility to change the concrete implementation of an algorithm any time without breaking the rest of your code. Furthermore, it is a very good example of using po...

Continue reading

Building Memory Efficient Apps

The performance of mobile devices got much stronger over the last few years. However, there is and always will be a huge performance deficit compared to desktop computers. At the same time, requirements

Continue reading

The MVC-Trap

The fundamental software architecture pattern in iOS and Mac OS  development is the Model-View-Controller pattern (MVC). The idea of this pattern is, that each of these three layers has a clear and precise

Continue reading

Container ViewController

Basically, there are two types of view controllers: Content view controllers and container view controllers. Container view controllers are used to manage some set of content view controllers and present

Continue reading