开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜