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

Continue reading

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.

Continue reading

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

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

Loading a View from a XIB

Generally, there are two ways to layout views: building it in interface builder or by coding. Both ways have their applications, but in many cases the interface builder way is more comfortable. If you

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

Objective-C: Lightweight Generics

Since Xcode 7 there are so-called “Lightweight” Generics in Objective-C. The biggest benefit of this feature is a better interoperability between Objective-C and Swift.

Continue reading

Singletons in Swift

Some people love it, some people hate it – but in the end everybody uses it: the singleton pattern. It is used if just one instance of an object is desired. For example, that could be a database

Continue reading

Outsource your UITableViewDataSource!

It is very common, that the controller of an UITableView is also its data source. This is the number one reason why view controllers tend to become very huge. Outsourcing the data source to an object

Continue reading

One Year of Swift

One year ago Apple introduced Swift, which was a very surprising move.  What remains after one year?

Continue reading

The 10 Best Xcode Shortcuts

Keyboard shortcuts can make your life better – or at least your workflow quicker. Here’s a list of the ten best ones:

Continue reading

Swift 2.0: defer

defer is another new keyword in Swift. With this statement you can declare clean-up code, that is executed just before the current scope ends. For example, this scope can be a function or a loo...

Continue reading