tags:

views:

110

answers:

1

I have an IPhone main view, myView, and I add a subview, mySubview. Now I activate in the mySubview drawRect method, a scale-up procedure, which expands both the bounds and the image in the subview by clocking some 40 frames, each scaled slightly bigger than the last. This way I get a set of expanding ripples.

Trouble is, even though I set myView.clipsToBounds to YES, the subview, when expanded, just spills out all over everything.

What is it that I'm missing here?

Thanks for any help.

A: 

Hold on a second. Are you changing the geometry of your view within the -drawRect: method?

NSResponder
I was, but I discovered that that was the problem. So now things are working correctly.
John R Doner