Refactoring With Protocols

The classic text on refactoring by Martin Fowler just got updated to a 2nd edition. How relevant is it to iOS developers? The book uses Javascript for the code examples but the techniques are language independent so don’t let that put you off. What Swift developers might miss is the use of protocols.

Read On →

UI Testing Quick Guide

Have you tried to use Xcode to write UI tests or automate your screenshots with fastlane? The documentation for iOS UI Testing leaves much room for improvement. The class documentation doesn’t help unless you already know what to do. Here’s my reference guide to get you started:

Read On →

Handling System Alerts In UI Tests

The Xcode UI testing framework has been with us since Xcode 7, but I still find it a struggle to use. Apple has the usual API documentation but practical examples are hard to find so I often stumble around when using it on a real project.

Here are my notes on dealing with one common roadblock - the system interrupting to ask for permission for something.

Read On →

Xcode 10 Random And Parallel Tests

Xcode 10 introduces three new options for running your tests. These allow you to randomize the execution order, speed up the tests by running them in parallel on multiple simulators and finally to control if Xcode automatically adds new tests to a scheme.

Read On →

Upside Down and Rotating iPhones

Have you wondered why your App doesn’t rotate to upside down on the iPhone but works fine on the iPad? How about preventing your App from rotating at all or restricting rotation for some view controllers but not all of them? Changing the orientations that your App supports is a complicated business. Here’s what you need to know. It’s a windy path to follow, but there’s a fun quote from Douglas Adams if you make it to the end…

Read On →
Archives Categories

No time to watch WWDC videos?

Sign up to get my iOS posts and news direct to your inbox and also get my free iOS Size Classes Cheat Sheet

Unsubscribe at any time. See Privacy Policy.