I want to know, how can I erase a custom rect (with, for example, an UIView in IB or something else) of an UIImageView in order to display an other UIImageView positioned underneath.

I didn’t manage to do it using some response in the forum…
This will clear a rect in an image:
Just load your image and clear the rects before assigning it to the image view: