I wanted to write a framework (or sth. like that) for drawing projects, but I got stucked. In this framework I have a background view for showing scaled pictures in the original ratio and also a overlay view for touch events. The layout method in overlay view is only called three times at the start. The image in the background view works the whole time. The red frame (view2.frame) should be the area where touch events are accepted (but it doesn't resizes because of the none working overlay method).
Here you can find the code.