In my application, I have scrollView with about 20 subviews in it. Each of these subzones has a drawRect method, which currently looks like this:
- (void)drawRect:(CGRect)rect { NSLog(@"drawRect called"); }
When additional objects are added, drawRect is called, however when scrolling it is very slow, although drawRect is not called again.
If I remove the implementation for drawRect, the scroll is completely normal. Even if I can't get rid of slow scrolling, is there an alternative to drawRect that I could use instead?
source share