How Do I Force Redrawing (drawRect) of a SubView When it Changes Dimensions?

Viewed 34527

I have a UIView that contains a row of subclasses of UIView. The subclass has overridden drawRect: and has set contentMode = UIViewContentModeRedraw.

As the user squashes and stretches the parent container the child views squash and stretch. As the shape change occurs I would like to have drawRect called repeatedly to change the contents of the child views. So far I have been unsuccessful. What is the correct way to do this?

Cheers,

Doug

3 Answers
Related