Swift: Enums

An enum is a data type that has a finite set of possible values. In this post we discuss will the most important aspects of enums in Swift.

Xcode: Navigating Through Your Project

If you are an iOS developer, you are navigating through your project the whole day. You can save a lot of time and increase your productivity if you know some tricks that make your life easier.

Published
Categorized as Xcode

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 for the user interface got stronger as well. So there is still the need to write memory efficient applications for mobile devices.

Optionals in Swift

Every variable can be declared as a so-called optional in Swift. As an optional, the variable is allowed to become nil what is equivalent to the absence of a value. 

Published
Categorized as Swift

Objective-C: Nullability

One of the biggest differences between Objective-C and Swift is the handling of nullability. But since Xcode 6.3 there are two new keywords in Objective-C that improve their interoperability: nullable and nunnull.

Error Handling in Swift 2.0

Swift 2.0 has a new way of error handling. It uses a do-try-catch  syntax,  which is the replacement for NSError .  In this post we will discuss how to use this new syntax.

Published
Categorized as Swift

Using Custom Fonts

Out of the box iOS provides you a rich set of fonts. But sometimes there is the need to add another font to your project. For example, this could be one of the Google Fonts, which are open source.  In this post we look how you can add a custom font to your project and how you can… Continue reading Using Custom Fonts

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 role, which leads to more reusable code and less bugs. However, in iOS development there is a drastic tendency that the controller layer… Continue reading The MVC-Trap