且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用CGContext显示精灵表iPhone

更新时间:2023-11-09 22:38:10

我认为您要使用的电话是 CGImageCreateWithImageInRect

I think the call you want to use is CGImageCreateWithImageInRect

newImage = [UIImage imageWithCGImage:CGImageCreateWithImageInRect( [spriteSheet CGImage] , imageRect )];