kwigbo

Adventures in iOS!

2 notes

Managing Color With UIColor Categories

I find it nice to have all the colors for my application contained in one file. This makes it easy to tweak the colors of the app without hunting. How I do this, is to create a Colors.h file and import it in the prefix.pch file. The prefix.pch file is located in “other sources” by default in a new xcode project. The file should look something like this…

Read more …

Filed under tutorials

1 note

Custom UITableViewCell Without Subclassing

I was going to do another game dev post today, but because of a lack of time I will be doing a short tutorial on customizing a UITableViewCell without subclassing.

I find myself in a position frequently where I want to add a label or image to a table cell. You can easily subclass UITableViewCell and add as many other components as you want. I don’t like this solution for adding just a few component due to the fact that it adds two files to my project. Since I like to keep the number of files in my project to a minimum, this is less than ideal.

Read more …

Filed under tutorials