MonoTouch 和 Storyboard:如何从表格单元格转到详细信息视图

发布于 2025-01-08 15:30:02 字数 176 浏览 0 评论 0原文

我正在创建一个 MonoTouch 应用程序,并有一个 UITableViewController,我尝试从其中创建从单元格到详细视图的 Segue。 创建转场没有问题,但是当我单击单元格时没有任何反应。

我希望这可以不用任何代码来完成,但看起来并非如此。

有什么想法吗?

谢谢 /尼古拉

I'm creating a MonoTouch application and have a UITableViewController from where I tried to create a segue from a cell to a detailed view.
There is no problem in creating the segue but when i click a cell nothing happens.

I was hoping that this could be done with no lines of code but it doesn't seem like it.

Any ideas?

Thx
/Nicolaj

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

乄_柒ぐ汐 2025-01-15 15:30:02

当您说“创建segue没有问题”时,您的意思是使用界面生成器吗?您仍然需要在代码中处理该事件。我不知道行选择事件有任何自动处理。

我看到另一个线程可能对您有帮助:如何在 segue 期间从视图控制器引用 tableView

Monotouch 有一个 tableview 示例显示 prepareForSegue< 的用法/strong> 和 RowSelected

When you say "no problem creating the segue" do you mean using interface builder? You will still need to handle the event in code. I'm not aware of any automatic handling of the row-selection event.

I see another thread that may help you: How to reference tableView from a view controller during a segue

Monotouch has a tableview sample showing the usage of prepareForSegue and RowSelected

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