When do I need to call setNeedsDisplay in iOS?
You should only be calling setNeedsDisplay if you override drawRect in a subclass of UIView which is basically a custom view drawing something on the screen, like lines, images, or shapes like a rectangle. So you should call setNeedsDisplay when you make changes to few variables on which this drawing depends and for view to … Read more