I have an image in UIImageView. This image will be moving on the screen. After certern interval I want to remove a part of the image from this moving image and keep the remaining image moving.
For example if a triangle image is moving then I would like to chop out top part of the triangle and make the triangle(with top cut) to keep moving.
I am able to move the object..but unabble to cut the image. I read online I can use CGImageCreateWithImageInRect to achive my task. Can anyone give a sample code to achive this...??
Greatly apprecite it...
Thanks in advance....
For example if a triangle image is moving then I would like to chop out top part of the triangle and make the triangle(with top cut) to keep moving.
I am able to move the object..but unabble to cut the image. I read online I can use CGImageCreateWithImageInRect to achive my task. Can anyone give a sample code to achive this...??
Greatly apprecite it...
Thanks in advance....