By Ben Stallings on Fri, 10/31/2008
I'm writing this post on an iPhone... not a real phone, but a simulated one that appears on my MacBook screen. it's about 50% larger than actual size, and it's very shiny and realistic looking. But most importantly, it looks and acts just like a real iPhone when it runs Safari.
Fortunately, Apple offers its SDK (Software Development Kit) for free to anyone who can claim to be an iPhone developer -- and if your goal is to make a Web site or two more iPhone-friendly, as far as I can figure it, that makes you an iPhone developer. The address is http://developer.apple.com/iphone/program/download.html . Note that you will need a Macintosh to run the program -- It doesn't do Windows.
Now, the SDK is intended for software developers, so it includes all kinds of programming tools that may not interest you if you just want to test your Web site for iPhone friendliness, but you don't have to install them all, and the simulator runs as a separate program you can add to your dock. (It's hidden, in /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications).
Once you start up the Simulator, you'll find it's quite easy to use Safari; there are just a few tips that should be more obvious: to zoom in and out, hold the option key and drag with the mouse -- the mouse pointer will become one of two dots representing your fingers as you pinch the screen. And if you're typing on your computer's keyboard rather than the one on the screen, to override the spellchecker's persistent and unhelpful suggestions (such as uncapitalizing the first words of sentences when you've typed them capital), just backspace and retype. (This may be a function of the Auto-Capitalization feature.)
Obviously there are a lot of things you can't do with the Simulator. It has no accelerometer, so any program that requires more sensitivity than just vertical or horizontal orientation is not going to work. And there's no way to take a screen capture (which on a real iPhone requires holding the home button while pressing the power button) -- the image at right was taken with the Mac OS utility Grab. But on the whole this is a very useful tool, and a great example of how giving something away for free is sometimes better for the bottom line than charging for it -- I'm sure that there wouldn't be so many new, free apps available for the iPhone, nor so many iPhone-friendly Web sites without tools like this from Apple!
In the coming weeks I'll be working to make our own iPhone Life Web site more iPhone-friendly, and I'll keep you posted about what I learn along the way!