UITableViewController 实现重写cellFo
2016-08-17 本文已影响31人
CimonsLee
A.需求:在UITableViewCOntroller中,根据后台的返回字段,判断是否隐藏某个Cell
B.实现方法:
1.由于UITableViewController是用Xib 实现的,所以,直接从Xib中把Cell拖拽到代码中。

2.在cellForRowAtIndexPath中进行重写

A.需求:在UITableViewCOntroller中,根据后台的返回字段,判断是否隐藏某个Cell
B.实现方法:
1.由于UITableViewController是用Xib 实现的,所以,直接从Xib中把Cell拖拽到代码中。
2.在cellForRowAtIndexPath中进行重写