Generating a PDF from a UIScrollView

A screenshot of an icon on the OS X desktop called UIScrollView.pdf.

PDF Generation of a UICollectionView.

There are plenty of situations where you might want to generate a PDF from a UIScrollView. If you search the internet, you’ll find lots of posts instructing you to change the frame of the scroll view to enclose all of its contents. This won’t work if you’re using AutoLayout. In any case, there’s a better way.

Continue reading

Fixing Plain Style Unsupported in a Navigation Item in Xcode 7

A screenshot of Xcode's errors and warnings pane showing "Plain Style Unsupported in a Navigation Item"

Plain Style Unsupported in a Navigation Item

If you’ve ever seen this Xcode complain about that the “plain style” for UIBarButtonItem is “unsupported in a navigation item” you know that it can be a nuisance to narrow down which button item has the unsupported style, especially in larger projects.

Here’s some good news for you. It’s pretty easy to figure out what button is causing the warning. Here’s how you do it:

Continue reading

Coloring The iOS UIScrollViewIndicators

A UIScrollView with purple indicators

Scroll view w/ purple indicators.

On iOS, UIScrollView (and subclasses UITableView and UICollectionView) come with scroll indicators, which show your user where they are relative to the overall content size of the scroll view.

By default, you can set the scroll view indicators to either be black or white, like so:

Continue reading

Customizing Safari’s Pinned Tabs

A picture showing pinned tabs with generated icons -almost all identical.

Identical Pinned Tabs

Ever pinned a few tabs in Safari and end up with a bunch of identical tabs which all had the same letter as the icon? I did. 

Continue reading

Economics Lessons from Get Famous!

Piles of interest waiting to be collected.

Piles of interest.

What happens when an online trading card simulator goes viral, shuts down, and makes a return under a new name? You have an economics simulation with some very interesting lessons.

Continue reading

Learning Assembly Language Concepts

Assembly language is really cool but it can also be maddening. I took a course on assembly last semester and I’d like to introduce a few of the basic concepts in assembly here. This isn’t a full blown tutorial, but just a bit to whet your appetite.

Continue reading

How to Make Money With Your iOS App: PatronKit

There are a few ways to support your app development efforts, including freemium, ads, and in-app purchases. One that was recently made popular by Overcast is called “the patronage model.” (Spoiler: I built something to help with patronage.)

Continue reading

Notes from the tv Tech Talks NYC  

I had an exhilarating time at Apple’s Apple TV Tech Talks yesterday in New York City. Here are my notes from the sessions. (Download

On Writing a watchOS 2 App with Time Travel


Whenever I submit an app to iTunes Connect, be it a bug fix or an update, I get a rush. I submitted my first native Apple Watch app today. I wrote a WatchKit app for iOS last year but this is my first fully native watchOS app.

Continue reading