Is Core Animation causing my subviews to call -drawRect for every single frame?
        Posted  
        
            by mystify
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mystify
        
        
        
        Published on 2010-04-10T18:58:32Z
        Indexed on 
            2010/04/10
            19:03 UTC
        
        
        Read the original article
        Hit count: 277
        
I made a nice UIView subclass which paints all its stuff in -drawRect:, because people said that's good. That view is a subview of another. This another view is beeing animated with Core Animation: It's scaled down, rotated and moved. However, I encountered this: -drawRect seems to get called trillion of times during animation, and performance sucks.
Is that normal or did I do something wrong, probably?
© Stack Overflow or respective owner