在swift中子类 的类扩展中重写父类方法不执行,具体原因不明!
autolayout设置后 frame默认为0 ,所以在过程中改变frame后要,self.viewlayoutIfNeeded来刷新布局。
转载于:https://www.cnblogs.com/hazhede/p/5711247.html