Category Archives: iPhone

Minesweeper (Part 5)

Today I present a rough prototype of our Minesweeper project. It incorporates the rendering techniques we’ve been experimenting with over the past few posts, and includes some (partial) game logic. At this point, you can only move around the playfield … Continue reading

Posted in iPhone, Projects | Comments Off

Minesweeper (Part 4)

When we last checked in on it, our Minesweeper project was suffering from slow rendering. Today, we find a workaround.

Posted in iPhone, Projects | Comments Off

Minesweeper (Part 3)

Today we implement a simple vector graphics renderer for Minesweeper. While it works, and runs reasonably quickly, it causes some highly undesirable stutter on the device. Since this approach isn’t final, I’m only going to cover some of its highlights, … Continue reading

Posted in iPhone, Projects | Comments Off

Minesweeper (Part 2)

Today, we take a first look at rendering our playfield. We find that a naive, UIView-based approach is unsatisfactory, and take a detour into the exciting world of vector graphics.

Posted in iPhone, Projects | Comments Off

Minesweeper (Part 1)

Let’s do a multi-day project: Let’s build Minesweeper for the iPhone. This should be pretty straight-forward, especially if we cut out a bell or whistle here and there. Let’s get started with some data structures.

Posted in iPhone, Projects | Comments Off

Quickie: URL Encoding

Via simonwoodside.com: If you want to URL-encode a string, don’t use stringByAddingPercentEscapesUsingEncoding: Use CFURLCreateStringByAddingPercentEscapes instead.

Posted in iPhone | Comments Off

Exporting SSL

A quick followup to an earlier post: Apparently, you do need to go through the whole CCATS process to ship an iPhone app that makes HTTPS connections – even if the app uses no other encryption. Although I’m only basing … Continue reading

Posted in iPhone | Comments Off

UIScrollView (Zooming)

The zooming behavior of UIScrollView is counterintuitive and not terribly well documented – particularly when one is dealing with a tiled scroll view. Today I present a simple “infinite zoom” demo (over an admittedly pretty bland world) that I hope … Continue reading

Posted in iPhone | Comments Off

Saving CGPaths

Let’s say you’ve created a CGPath in your code, and you’d like to save it to disk. It wasn’t immediately obvious to me how one might do this, but it turns out to be pretty easy with the use of … Continue reading

Posted in iPhone | Comments Off

UIScrollView (Tiled)

To follow up on last week’s post about UIScrollViews, I want to explore this somewhat mysterious passage from the documentation: The object that manages the drawing of content displayed in a scroll view should tile the content’s subviews so that … Continue reading

Posted in iPhone | Comments Off