UINavigationBar 教程与 UITable,使用 didSelectRow/RowSelected 推送详细信息视图?

发布于 2024-12-29 06:05:40 字数 414 浏览 2 评论 0原文

我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

似狗非友 2025-01-05 06:05:40

将 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文