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?
In your view's init (our in the class where you instantiate your view) set the ContentMode:
yourView.contentMode = UIViewContentModeRedraw;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With