UITableView - 展开单元格

问题描述:

我设法展开我的单元格(经过多次尝试),如您在我的图片中所看到的。 enter image description hereUITableView - 展开单元格

,但我真正想要的是这样的:

enter image description here

,你可以看到,当在描述用户单击单元格扩大显示内容: enter image description here

可以请有人告诉我在哪里可以找到所有的信息来做到这一点。 (我努力找到他们)。非常感谢你!!!!!!

+1

[Expandable TableView example](http://developer.apple.com/library/ios/#samplecode/TableViewUpdates/Introduction/Intro.html)from – beryllium

你可以试试苹果的源代码在你的应用程序 - http://developer.apple.com/library/ios/#samplecode/TableViewUpdates/Introduction/Intro.html

,或者你可以休耕这个博客 -

http://www.cocoanetics.com/2011/03/expandingcollapsing-tableview-sections/

,你需要添加自定义的UITableViewCell设计根据自己的需要。

+0

谢谢!正是我所需要的.... – mat

更改tableView:heightForCellAtIndexPath:中单元格的高度,更改tableView:cellForRowAtIndexPath:中的单元格布局并致电[[self tableView] reloadData];