iOS


Xcode Tricks: Multiple Selection

Have you used a code text editor that’s truly sophisticated and powerful, such as SublimeText or TextMate or Visual Studio Code or RubyMine? One very cool feature that they all have in common is multiple selection, also referred to as multiple cursors. This means you can select and edit multiple stretches of text simultaneously. When …

Xcode Tricks: Multiple Selection Read More »


Adventures in iOS Programming: Self-Sizing Cells

The other day, I was talking with BiTE CTO Brant about what we’d been up to lately in our iOS programming endeavors. I suggested that it might be interesting if your computer had a way to quantify how much time you spend on different sorts of programming task in the course of developing a project. …

Adventures in iOS Programming: Self-Sizing Cells Read More »


Rant: Xcode and the Protocol Paradox

This is a rant about an extremely useful Xcode feature that completely stops working just when you most need it to work. At the risk of giving the whole story away right at the start, I’ll just give the whole story away right at the start! The useful feature is Xcode’s ability to show you …

Rant: Xcode and the Protocol Paradox Read More »


More About Split View Controllers in iOS 14

In an earlier article, I talked about how split view controllers (UISplitViewController) have been completely revamped in iOS 14. In particular, they “adapt” to the environment’s horizontal size class in a whole new way. A two-part split view has three “columns”, but they are not all displayed at the same time: The .primary and .secondary …

More About Split View Controllers in iOS 14 Read More »


Split View Controllers Done Right in iOS 14

A split view controller (UISplitViewController) is a pretty cool thing. It allows you to divide the large iPad screen into two parts, each of which is managed by a view controller in its own right. Typically, these are a master view controller and a detail view controller: on one side, the master side, is a …

Split View Controllers Done Right in iOS 14 Read More »


Sherlock Holmes and the Mystery of the Untappable Button

This is a fairly commonly-asked question that I encounter on Stack Overflow: My button (or some other user-interactive view) doesn’t respond when I tap it. And naturally enough, I have a commonly-given answer to go with it. In fact, I have a kind of catechism for helping people debug this situation. Even experienced developers can …

Sherlock Holmes and the Mystery of the Untappable Button Read More »


Diffable Data Sources and Data Storage — Part 2

This is the second part of a two-part article about iOS diffable data sources. If you haven’t read the first part, please go back and read it now! Inside and Outside In the first part of this article, I created a table view whose data source consisted simply of the names of the U.S. states, …

Diffable Data Sources and Data Storage — Part 2 Read More »


Diffable Data Sources and Data Storage — Part 1

When I first started programming iOS (back in iOS 3.2), many of my apps revolved around table views (UITableView). At first, I was surprised by how Apple makes you supply the data to a table view. You don’t just store all the data in the table view. Instead, there’s a separate object, the data source …

Diffable Data Sources and Data Storage — Part 1 Read More »