ios - xib创建的view作为tableheaderview高度如何动态变化?
PHPz
PHPz 2017-04-17 17:56:46
0
1
295

tableview是手写的代码,用xib拖了一个view作为它的tableheaderview,约束都弄好了,但是当我数据加载上之后,它的高度不会动态变化。
希望能指点一下,xib创建之后改如何手动修改控件的高度。

PHPz
PHPz

学习是最好的投资!

Antworte allen(1)
巴扎黑

使用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.

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage