Hour 14 FlowerColorTable Error

In the process of trying to consolidate examples for this latest edition, I introduced a bug into the Hour 14 “FlowerColorTable” project. To display the flower images in this tutorial, I used the name of the flower as the name of the image file – but I changed the capitalization.

This is a big no-no!

Unlike OS X, the iOS filesystem is case sensitive.  OS X is case-aware, but, by default, not case sensitive. As a result, the example ran fine in the iOS simulator (running off the OS X filesystem) but failed to show the flower images when run on a device.

The fix? Make the flower names given in the viewDidLoad method of the view controller match the file names, or vice versa.

Thanks to the readers for catching this!

Posted in iOS 5 Errata