Clean Table View Code Using Swift Protocols
Getting my UITableView code just right has been a long and ongoing quest for me, ever since I did my first implementation of the UITableViewDataSource protocol. Other than the delegation pattern,…
Getting my UITableView code just right has been a long and ongoing quest for me, ever since I did my first implementation of the UITableViewDataSource protocol. Other than the delegation pattern,…
With the new Xcode 7 beta 6 that was released earlier this week, Apple introduced the new try? keyword. It gives us some more flexibility when handling operations that may throw…
Background Recently I was working on a project where we were adding support for some new languages. One of those languages were German. Now German is notorious for having some…
Background I have been struggling with this a bit and couldn't find a documented solution online. So upon solving the problem I decided to write this blog post just to…
Swift comes with a lot of really nice features that make it hard to go back to Objective-C. The main feature is safety, but that may be seen as just…
At the WWDC 2014, Apple unveiled Swift as a complete replacement for Objective-C, the recommended programming language for developing for the Mac OS X and iOS platforms since Apple bought…
I love charts and info graphics. so when I got all the great info from Apple about iOS 7, I made a flow chart. It is also a part of…
Today I gave a little thought to the problem of translating apps. Having support for more languages than English provides you than a vastly larger market, and with the modern…
I previously wrote a blog post titled Performing any Selector on the Main Thread detailing a convenience category on NSInvoication for easily creating invocation objects that could be invoked on…
Users and testers will find bugs you are sure you have already fixed. Sometimes they use the wrong version, sometimes your fix is not as good as you thought. Either…
There is a vibrant community of open source projects for iOS. You need a calendar UI components or a JSON parser? No problem, the projects are out there. Most code…
Apple provides many tools for implementing concurrency in your application. NSOperationQueue, GCD, or simply using performSelectorInBackground:withObject: that is available on each and every object, are just some examples. The tools…
Cocoa, and by inheritance Cocoa Touch on iOS makes a clear distinction between what is an exception, and what is an error in your application. This should be obvious since…
In Java you have for quite some time had the Future interface for encapsulating an asynchronous calculation. Cocoa has had the abstract NSOperation class to encapsulate asynchronous operations. NSOperation do…
Cocoa Touch added API for presenting a view controller in a popup bubble in iPhone OS 3.2, the responsible class is named UIPopoverController. One would guess that this new class…