我正在尝试创建一个应用程序来为 Iphone 应用程序存储表格数据。
我的 table 是这样的
Header1 Header2 Header3
Row1_1 Row1_2 Row1_3
Row2_1 Row2_2 Row2_3
哪个是 Xamarin 中最容易使用的 Controller ? 我看过http://docs.xamarin.com/guides/ios/user_interface/tables/part_1_-_table_parts_and_functionality/
但是不支持多列?
我只需要一个简单的表格,单元格中没有图像,上面没有交互,只显示简单的数据。
最佳答案
我最终做的是。我用我的数据动态创建了一个带有表的简单 HTML,并使用 WebView 从 Xamarin.Forms 或 UIWebview 从 monotouch 呈现它并设置其 HTML 源
WebView view= new WebView();
string html= @"
<table style="width:300px">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
</table>
";
view.Source = new HtmlWebViewSource { Html = html };
关于ios - 使用 Xamarin 的简单多列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22925028/