iOS layout

2016-12-06  本文已影响7人  YH的练手记

setNeedsLayout will layout subviews:

Call this method on your application’s main thread when you want to adjust the layout of a view’s subviews.

setNeedsDisplay will call for a redraw of your view (drawRect:, etc):

You can use this method or the setNeedsDisplayInRect: to notify the system that your view’s contents need to be redrawn.

上一篇下一篇

猜你喜欢

热点阅读