HJCache: iPhone cache library for asynchronous image loading and caching.

A free library for iOS for making apps that download images or other data from URLs. Includes caching, easy memory management, etc.

iPhone Development Books 1: Learning iOS Programming

I own 91 books covering iPhone app programming, design, marketing, and business, and I’ve browsed plenty more. From all those books I’ve picked out the ones I consider to be the very best. My recommendations are split into four parts: Learning iOS Programming (below) Design for iPhone and Mobile Apps Building iPhone Games & Unity [...]

iPhone @2x Graphics, scale, and iPad

Here we look at how to use @2x graphics file to draw for the iPhone 4 high resolution retina display, explore how to use the new scale property to determine at run time which resolution to use, and how this works for an iPhone app running on the iPad.

Xcode on a 2010 Macbook Pro High Res with SSD

I got a new MacBook pro with high res display and a solid state drive and for iPhone development. For development tasks the new machine is 2-3 times faster than the old one, and it has enough screen space to comfortably run Xcode and the simulator side by side…

iPhone Memory Debugging with NSZombie and Instruments

How to debug memory crashes in your iPhone app using Instruments and NSZombie. If your app is crashing with ‘BAD ACCESS’ its because your retains and releases are screwed up and you are calling a method on an object you already deleted. This is the easiest technique to figure the problem out.

Debugging Tip – objc_exception_throw breakpoint

If an exception is thrown when debugging an iPhone app, without your own exception handling code, that exception won’t stop the debugger until the call stack has totally unwound. On that journey through the call stack it gets caught and disguarded in the event loop. That’s a bummer because then the debugger can’t show you [...]

Memory Management Basics Tutorial Video

This article is a screen cast video of my tutorial for beginner iPhone programmers, it’s about the basics of memory management in Objective-C. Memory management is a tough nut for the beginner to crack, particularly in Objective-C and Cocoa for iPhone. Check out my iPhone memory management reading list for more voices on memory management. [...]

iPhone Memory Management Reading List

It’s a topic that can be explained several different ways, so keep reading and experimenting till it clicks for you.

… Books Learn Objective-C on the Mac Cocoa Programming for Mac Programming in Objective-C Online Practical Memory Management from Apple Memory Management Guide from Apple Dr Dobbs Mac Developer Tips Memo.tv mauvilasoftware.com Stepwise.com Tristan O’Tierney Mac Developer Network Video O’Reilly and here Cocoa Dev Central Cocoa Dev HyperJeff’s list of resources WikiBooks Devplace Woojijuice Peter Dikant   

Fixing Blurry Subviews

Custom UIs on the iPhone are made from UIView containing subviews, I ran across a problem where the subviews were being draw with an annoying blur. Here’s what was happening and how to fix it…

What Color is My Pixel? Image based color picker on iPhone

iPhone’s cocoa touch doesn’t seem to have a call to get pixel color from the screen or an image, which I needed to make a simple image based color picker. Here’s a solution to do this using an offscreen graphics context we can use to get pixel by pixel data from the image. I’ve wrapped up the technique in a new class ColorPickerImageView and there’s a complete demo XCode project you can download to see it in action.

UITables with Downloaded Images – Easy Asynchronous Code

How do you download images from the web and display them in a UITableView that scrolls smoothly and never lags? You need a multi-threaded app! Cocoa makes it easy… I’ll show you how I did it in just 40 lines of code and with no thread safe headaches…