Do not do this, this is not necessary. Set the contentMode parameter to the contentMode view:
UIViewContentModeRedraw
Re-displays the view when the borders change by calling the setNeedsDisplay method. Available in iOS 2.0 and later. Announced in UIView.h.
This will lead to the same effect.
source share