我正在开发一个项目,但现在几乎陷入困境。
我正在尝试为我以编程方式生成的表格 View 创建一个自定义单元格。
但是我不知道如何从代码中更改单元格高度。
真的很感激一些答案或不同的方法来做到这一点
这里有一些代码可供查看:
查看: http://pastebin.com/WZFvLpZi
CustomCell.cs: http://pastebin.com/vc2ZntLK
TableItem.cs: http://pastebin.com/fjSWPi8u
TableSource.cs: http://pastebin.com/1xhBtdGy
最佳答案
在您的 TableSource 中重写此方法
public override float GetHeightForRow (UITableView tableView, NSIndexPath indexPath)
关于ios - Xamarin.IOS 表格 View 自定义单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24192479/