7

I'm converting a view from shocks and struts to autolayout but now the custom drawing code that is in drawRect is not being called. Is this expected behavior and if so how can I work around this?

adam0101
  • 1,198
  • 2
  • 16
  • 24

1 Answers1

6

In your view's init (our in the class where you instantiate your view) set the ContentMode:

yourView.contentMode = UIViewContentModeRedraw;
The Windwaker
  • 1,054
  • 12
  • 24