如何在ipad monotouch应用程序中添加多个列?
从表中选择记录(单元格)时,我希望在“详细视图”控制器上显示其详细信息如何在ipad monotouch应用程序中添加多个列?,ipad,uitableview,xamarin.ios,Ipad,Uitableview,Xamarin.ios,从表中选择记录(单元格)时,我希望在“详细视图”控制器上显示其详细信息 I am using a UISplitViewController in my application. In this SplitViewController on the left hand side i have A NavigationController and on right side i have a DetailViewController. On my navigation controller i
I am using a UISplitViewController in my application. In this SplitViewController on the left hand side i have A NavigationController and on right side i have a DetailViewController.
On my navigation controller i have UITableViewController which is used for navigating through the hierarchy of data.
谢谢,
Neha在tableview中没有两列,但您可以在单个列中添加子视图 在cellForRowIndex委托中执行以下操作
在本例中,创建一个标签,指定对应于该特定单元格的边框(x、y、宽度、高度)值。然后将此标签作为子视图添加到单元格中。现在,对于与标签相同的文本字段,请将其x值增大,使其位于tableview的右侧。Hi,我仍然不清楚。什么是cellForRowIndex委托?你的意思是说我需要在“GetCell”方法中的表中的每个单元格中添加标签和文本框,在“GetCell”方法中声明单元格的内容?我需要为此表创建一个单独的类文件,还是可以在我的DetailViewcontroller.cs文件中为此表创建一个子类?请参阅这两个教程
I want the data to be displayed in following format:
Name: Matthew
Age: 24
City: Newyork
My problem is, i dont know how to add more than one column in the UITableView.
Another question is that how to edit the values from this table?
I want to edit the cells from table.
For example, i want to edit the details from above table to:
Name: George Matthew
Age: 24
City: Newyork
In short i want to place labels in the forst column and text boxes in the second column of my table.
Please help me out.