tableview是手写的代码,用xib拖了一个view作为它的tableheaderview,约束都弄好了,但是当我数据加载上之后,它的高度不会动态变化。
希望能指点一下,xib创建之后改如何手动修改控件的高度。
巴扎黑2017-04-17 17:58:46
使用tableview的这2个方法方法
(void)beginUpdates; // allow multiple insert/delete of rows and sections to be animated simultaneously. Nestable
(void)endUpdates; // only call insert/delete/reload calls or change the editing state inside an update block. otherwise things like row count, etc. may be invalid.