setNeedsLayout()

This instance method invalidates a view’s current layout and triggers a layout update during the next cycle. This method does not provide a immediate update but waits till the next update cycle.

Leave a Reply