[英]Xamarin.IOS tableview custom cell
I'm working on a project and I'm pretty much stuck right now. 我正在做一个项目,现在几乎陷入困境。
I am trying to create a custom cell for my tableview which I programmily generated. 我正在尝试为我以编程方式生成的tableview创建自定义单元格。
However I got no clue on how to change the cell height from my code. 但是我不知道如何从代码中更改单元格高度。
Would really appriciate some answers or different ways to do it 真的会提出一些答案或其他方法
Here is some code to look at: 下面是一些代码:
View: http://pastebin.com/WZFvLpZi 查看: http : //pastebin.com/WZFvLpZi
CustomCell.cs: http://pastebin.com/vc2ZntLK CustomCell.cs: http ://pastebin.com/vc2ZntLK
TableItem.cs: http://pastebin.com/fjSWPi8u TableItem.cs: http : //pastebin.com/fjSWPi8u
TableSource.cs: http://pastebin.com/1xhBtdGy TableSource.cs: http ://pastebin.com/1xhBtdGy
在您的TableSource中重写此方法
public override float GetHeightForRow (UITableView tableView, NSIndexPath indexPath)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.