MKAnnotationViews and AutoLayout

Having just developed a plist-based design framework that works in Interface Builder, I’m more interested than ever in using xibs and storyboards to design my views.

I also like using AutoLayout. There are significant advantages when it comes to things like labels that make it so much easier to deal with than manually setting frames everywhere in code. Things like Dynamic Type, accessibility, and localisation all become easier and there’s less room for error.

There are some things that do become more complicated with AutoLayout (mostly transforms) but there are well established workarounds for most of these.

I was recently designing a new app that involved using MapKit and I wanted to use AutoLayout to design a subclsss of MKAnnotationView but this isn’t entirely straightforward.

Continue Reading →

Getting the Nintendo Switch Connected Abroad

I had a lot of trouble getting my Nintendo Switch to connect to the internet while staying at our otherwise lovely villa here in Bali. While trying to join a network it would give the “registration is required to use this network” warning, then launch the browser to try to show me the registration page.

Except instead of a registration page, it would just show the default conntest.nintendowifi.net page. This means that no registration was actually required and the Switch was online but, because it hadn’t passed registration, it thought it wasn’t and no services would work.

Continue Reading →

Controlling Interface Builder with Plists

I have an appearance manager that reads styles from a plist file and applies then throughout the app through the use of the appearance proxy and through notifications to various custom subclasses of the standard UIKit views and controls.

This works great and allows for of a lot of easy features like different coloured themes or dark modes. The major downside right now is that none of the changes to the plist are reflected in Storyboards or Xib files.

Continue Reading →

Treehouse

“We’re thinking of selling the house.”

William beamed at me with his disarming smile. He was still handsome at 40, with long salt and pepper hair, but I turned away from him to process what he had just said. 

The three of us were sat on beanbags in their treehouse, drinking tea from a tea set laid out on the floor between us. Betty was flicking through a magazine propped up on her lap with one hand and holding a cup in the other. She was striking in the soft afternoon light, with short cropped hair and an easy smile. They made a beautiful couple. 

Continue Reading →

The Commute

Michael McEnnedy left the busy main road and turned onto a shadowy back street. He walked down the middle of this long and claustrophobic single carriageway, enjoying the gloominess created by the rows of large warehouses that loomed over him on either side, the morning’s grey drizzle making it grimmer than usual.

He considered this his private route to work. It added five minutes to his journey into the centre of town so he rarely saw anyone else using it. On this particular morning, however, he was annoyed to see the small figure of a man at the far end of the dim road. The man walked swiftly, and what looked like a small backpack was slung over one shoulder.

Continue Reading →