What follows is a category I use to animate UIViews. Adding the animation code where the animation happens feels very messy to me. With these simple categories you can cut down the animation of a UIView in certain situations to a single line of code.
Read more …
Filed under tutorials
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
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