layoutSubviews,layoutIfNeeded,setNeedsLayout触发时机和规则
作者:传说中的汽水枪地址:https://www.jianshu.com/p/f17ac629dbc0版权所有,欢迎转载,转载请注明出处,欢迎留言评论。在实际的开发过程中和面试当中都会遇到这样的问题,先用相关的测试代码。测试ViewRXLayoutView@implementationRXLayoutView-(id)init{if(self=[superinit]){self.backgroun