Categories
Programming

Getting KIF Set Up

Continuing my obsessive testing strategy, I had to set up KIF for UI Automation Tests. Honestly it’s surprising I didn’t do it earlier, but since the UI is very simple I was getting better ROI doing unit tests – I see KIF as a sanity check, not as a way to debug anything. Step 1: […]

Categories
mobile Programming

#iOSDevUK: Steve Scott: Sherlocked! Deprecated! Changed! AKA “Do Apple Hate Developers?”

Helpful to take a step back and see where we are. We all tend to view the world through rose tinted glasses. Depend to look through a lens that colours what we are seeing. Unless take them off, hard to see what the situation is. Glasses worn by iOS is “we are indie devs”. Sense […]

Categories
mobile Programming

iOS Testing: Handling Asynchronous Code

I was handling a common occurrence when doing something that takes a noticeable amount of time on iOS. Show loading UI. Do work. Transition to post-work UI. To make the experience better (so that it doesn’t lock up), I pushed 2 onto the background thread, and then had to push 3 back on to the […]

Categories
Programming

The Entire Dev Team is Sick

I’m working on an app right now. I’ve been working on it since I escaped my gilded cage, modulo distractions – consulting, travel, talks, writing. It’s fun, working on my idea, and thankfully I met a great designer so it’s not going to be Developer Art. And it’s cool. I’ve had a working demo for a while […]

Categories
mobile

Better Testing of View Controllers on iOS: Part 2

When I previously wrote about better testing of view controllers on iOS I alluded briefly to the strategy of breaking the ViewController into a ViewController and a Presenter. Again, I won’t go into mocking here, but you need a mocking framework and some understanding of what mocking is for this to make sense. Currently, I’m using OCMock. […]

Categories
mobile Programming

Better Testing of View Controllers on iOS

When I started testing iOS apps, which shamefully was not when I started writing iOS apps, I discovered the biggest impediment to thorough testing on iOS was the View Controller, and it’s mix of UI code, and not. Now I’m working on my first independent app (yay!) of course I am writing extensive unit tests. I won’t […]

Categories
Presentation Programming

#iOSDevUK: UIKit Dynamics

My notes from Simon‘s excellent talk at iOSDevUK [his slides]. Physics for UIKit. “Visual layers and realistic motion impart vitality and heighten users’ delight and understanding” Buttons used to look like buttons, now they don’t. Don’t have visual cues. Compensate using Dynamics to add some motion. Not for flappy birds. Has tried it, can get […]