I am subclassing UIImageViewto create a tile based application. Essentially, I take one image file and break it into pieces, and then assign the parts to my tiles ( UIImageViews) so that they can be manipulated independently.
What is the best way to capture part of an image and use it for drawing UIImageView? I was thinking about overriding drawRectand using CGAffineTransform, but it seems that there should be an easier way to do this, perhaps by pointing CGRectto UIImagewhich is passed in UIImageView, but I do not see the API for this.
source
share