UINavigationBar 教程与 UITable,使用 didSelectRow/RowSelected 推送详细信息视图?
我的 UITable
运行良好,当我选择一行时尝试进入另一个页面,但在 C#
中没有找到 toturial。如果有人知道一个好的教程,或者可以解释如何做,那就太棒了..
想了解如何做,以便编写代码没有帮助..MyTableViewSource.cs
,
public override Void RowSelected (UITableView tableView, NSIndexPath indexPath)
{
if ((indexPath.Section == 0)&&(indexPath.Row == 0))
}
我想要访问的页面是HelloController 一个 UIviewController。
提前致谢
I have my UITable
that works well, trying to get to another page when I select a row, havnt find toturial for this in C #
. would be awsome if anyone knew of a good tutorial, or could explain how to do ..
Would like to understand how, in order to write the code just does not help ..
MyTableViewSource.cs
public override Void RowSelected (UITableView tableView, NSIndexPath indexPath)
{
if ((indexPath.Section == 0)&&(indexPath.Row == 0))
}
the page I want to get to is HelloController, a UIviewController
.
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 uitableviewcontroller 的导航控制器传递到 uitableview 源中,然后实例化并将新的视图控制器推送到 rowselected 中。如果您在尝试使用导航控制器时遇到 null 异常,请等待实例化 uitableviewsource,直到 viewDidAppear/viewWillAppear。
Pass the uitableviewcontroller's navigation controller into the uitableview source then instantiate and push the new view controller in rowselected. If you get a null exception when trying to use the navigation controller, wait to instantiate your uitableviewsource until viewDidAppear/viewWillAppear.