美文网首页
iOS layout

iOS layout

作者: YH的练手记 | 来源:发表于2016-12-06 16:12 被阅读7次

    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.

    相关文章

      网友评论

          本文标题:iOS layout

          本文链接:https://www.haomeiwen.com/subject/xrermttx.html