I have a table view with a list of categories and each category (understand table cell) has a different icon.
I would like to use one big image (sprite) and render different part of the image (single icon) for each row.
Any efficient ideas...
I have a table view with a list of categories and each category (understand table cell) has a different icon.
I would like to use one big image (sprite) and render different part of the image (single icon) for each row.
Any efficient ideas...
Take a look at CGImageCreateWithImageInRect see the accepted answer to http://stackoverflow.com/questions/2863626/using-cgcontext-to-display-a-sprite-sheet-iphone/2863689#2863689 for instance.