Iphone Dev: Using one big image (sprite) for all uitableview cells
I have a table view with a list of categories and each categor开发者_运维问答y (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 Using CGContext to display a sprite sheet iPhone for instance.
精彩评论