Category Archives: iPhone

Twitter, OAuth, and Custom URL Schemes

If you want to access the Twitter API from your iPhone app, you’re going to have to use OAuth. (Twitter is turning off Basic Authentication support at the end of June.) To use OAuth, you need to follow these basic … Continue reading

Posted in iPhone, Web stuff | Comments Off

NSURLConnection Helper

Jeff has got a good post up on the importance of using the iPhone’s built-in asynchronous communication classes and methods in lieu of threads: Don’t spawn threads for asynchronous communications unless you would have used threads in the same situation … Continue reading

Posted in iPhone | Comments Off

Reachability

From AAPL’s developer website: If your application provides functionality that requires access to a network, it’s very important that your code include a customer alert or notification when the network is not available. The Reachability sample application demonstrates how to … Continue reading

Posted in iPhone | Comments Off

Splash Screens

I just noticed that I’d neglected to include a “startup screen” in the Demine application. The creation of these sorts of screens is pretty straight-forward, and I illustrate it below.

Posted in iPhone | Comments Off

Back Buttons

Today, a quick note about “back” buttons. The chevron-shaped button that appears by default in the left-hand position of a nav. bar can be a little problematic. In particular, the system-provided button doesn’t cross-fade properly with other buttons, and it … Continue reading

Posted in iPhone | Comments Off

Minesweeper (Part 9)

Today we finally submit our Minesweeper clone to AAPL for approval. Let’s see how that goes. In the meantime, you can download the latest source code here. Allow me to offer two words (well, “paragraphs”) of warning about the project’s … Continue reading

Posted in iPhone, Projects | Comments Off

In-App Purchase

I’ve been working with in-app purchases, and would like to share a little of what I’ve found. Today I present a simple view controller that displays the contents of an in-app store. There’s a lot missing from it (e.g., you … Continue reading

Posted in iPhone | Comments Off

Minesweeper (Part 8)

Today we bring our Minesweeper project almost to the point of completion. The latest version (you can download the Xcode project here) adds puzzle setup, high-score tracking, and auto-clear, along with an assortment of odds and ends needed to get … Continue reading

Posted in iPhone, Projects | Comments Off

Minesweeper (Part 7)

Today I provide an updated Xcode project for our Minesweeper clone. This version implements a lot (but not all) of the design we covered on Monday, including all the gameplay features aside from auto-clear. You can download the project here; … Continue reading

Posted in iPhone, Projects | Comments Off

Minesweeper (Part 6)

Now that we’ve got a prototype of our Minesweeper game nailed down, let’s take a moment to do some design. A hand-wavy “eh, make it like the Windows version” has been all we’ve needed to get this far, but it’s … Continue reading

Posted in iPhone, Projects | Comments Off