【发布时间】:2014-07-28 21:52:55
【问题描述】:
我无法弄清楚如何在我的Xamarin iPad 应用程序中更改表的rowHeight。以前我在 iPhone 应用程序上工作过,调整行的大小就像在 TableSource 类中调用以下代码一样简单:
public override float GetHeightForRow (UITableView tableView, NSIndexPath indexPath)
{
return 95f;
}
但是,我发现 iPad 应用程序中没有调用它。我应该调用另一种方法还是我完全错误地解决了这个问题?
【问题讨论】:
-
不熟悉 Xamarin,但在 Objective-C 中,您只需设置表格视图的
rowHeight属性即可。
标签: ios uitableview ipad xamarin xamarin.ios