开发者

Iphone Dev: Using one big image (sprite) for all uitableview cells

开发者 https://www.devze.com 2022-12-30 16:08 出处:网络
I have a table view with a list of categories and each categor开发者_运维问答y (understand table cell) has a different icon.

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

精彩评论

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