February 2011
4 posts
1 tag
Simplify UIView Animation With Categories
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. @interface UIView (Extra) // Animate removing a view from its parent - (void) removeWithTransition:(UIViewAnimationTransition) transition...
Feb 22nd
1 note
1 tag
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… #ifdef...
Feb 15th
2 notes
1 tag
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...
Feb 8th
1 note
Building a Platform game with Corona and Lime
**Update** - Added Corona Project Minus Lime Source Code You can download the project I will be working with here. This does not include the Lime source code, you will have to buy that yourself here. Note: I have been coding in lua for about a week now. Please let me know if you find anything incorrect or bad practice. In this tutorial I will be walking you through the code needed to create a...
Feb 1st
1 note