Voices That Matter

Archive for May, 2009

iPhone Developer Tips Stats:
Past 30 days - Pageviews: 88,766 Visitors: 61,679
Thank you everyone! Let's shoot for 100,000 by May. Pass it on...



Images and Caching

If you are working with a large number of images in an iPhone application, read on, chances are I can save you some trouble when it comes to memory management. Let me provide some background information…
I’ve been working on an application which has images divided into several sub-directories:

Memory Management

Debugging Macros

In a previous post, Yet Another Debug Output Replacement, I wrote a macro that I prefer over NSLog as the output does not prepend the date/time and object information that NSLog does.
Since that time I’ve pulled together a few more macros that I use on a regular basis for printing debug information on rectangles, points [...]

Debugging

Suspend or Ignore Touch Events

Temporarily stop/suspend touch events on the iPhone.

Event Handling

Save an Image to Camera Roll

Saving an image to the camera roll on the iPhone is as close as a method call in the UIKit. However, it takes a few steps to wrap together code to manage error handling and notification that the image has been saved. Let’s see how this works.
Let’s begin with the method description to save [...]

Camera

iPhone Video Tutorials – New Sponsor

John C Murphy , a new sponsor of iPhone Developer Tips.
John is the creator of an excellent series of video tutorials for aspiring iPhone and Mac developers. With topics ranging from Cocoa to Objective-C to Xcode, this is a good resource for those new to programming on the Mac platform. Many of the videos are [...]

Screencasts / Videos

Determining Elapsed Time

I recently wrote a short block of code to display an activity indicator while waiting for an image to be written to the iPhone camera roll. The problem I ran into is that the time to write the image file varies, depending on the image size. In some cases the activity indicator would be visible [...]

Date and Time