先讲一下产品需求,tableview有两个section,但是要自定义一个view一直吸顶。使用section-headview的话,在滑动到第二个section的时候,会使用第二个header作为吸顶view,但是需求是segment(一个自定义view)一直吸顶,那就把segment在refreshTableHeaderview(自定义的方法,在网络请求成功后刷新头部视图)的时候,添加到tableview上了,此处有疑问,每次网络请求都会添加一次,也就是多次添加,那是不是就意味着,多个层级;被同事用怀疑的眼光问,这么基础的东西你都不知道吗?
addSubview的show quick help里面有信息提示
This method establishes a strong reference to view and sets its next responder to the receiver, which is its new superview.
Views can have only one superview. If view already has a superview and that view is not the receiver, this</