且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MonoTouch的填充一个简单的UITableView与UITableViewDataSource - 如何使用UITableViewDataSource

更新时间:2022-05-02 22:49:37

的UITableView ,以及相关委托和数据源类型,是不是一个非常友好的API - 甚至更少为典型的.NET开发人员。有在需要时次,但在大多数情况下,你需要使用更简单的东西。

UITableView, and associated delegate and datasource types, is not a very friendly API - even less for the typical .NET developer. There are times when it's needed but, in most cases, you'll want to use something simpler.

创建列表项分配的项所述的UITableView的列表以允许用户滚动列表。寻找一个非常非常简单的例子。

Create a list of items Assign that list of items to the UITableView to allow the user to scroll the list. Looking for a very very simple example.

这似乎适合的 MonoTouch.Dialog 的目标。该组件现在随MonoTouch的,但你可以找到示例源代码在github上。

That seems to fit MonoTouch.Dialog's goal. The assembly is now shipped with MonoTouch but you can find the sample source code on github.

Xamarin的文档资料网站也有一个的教程 =http://g.xamarin.com/2012/02/10/easily-create-ios-user-interfaces-with- MonoTouch的-对话框/相对=nofollow>视频也是可用的。

Xamarin's documentation web site also has a tutorial for using MonoTouch.Dialog and a nice video is also available.