UISplitView 上的 UITableViewController。为什么向下钻取保留在第一个表上? (使用单点触控)

发布于 2024-09-03 09:45:50 字数 186 浏览 3 评论 0原文

我在我的应用程序中使用 UISplitView,左侧(纵向弹出窗口)利用 UITableViewController。我想重用主表控制器,因此当我想向下钻取时,我创建该对象的一个​​新实例并推送它。但是,当我设置数据源时,所有数据都会进入第一个实例表(希望这是有意义的)。因此,如果我点击后退按钮,我认为应该位于推送表中的新数据位于第一个表中。有什么想法吗?

I'm using the UISplitView in my app with the left side (popover in portrait) utilizing a UITableViewController. I want to reuse the master table controller so when I want to drill down I create a new instance of the object and push that. However, when I set the data source, all the data goes into the 1st instance table (hope that makes sense). So if I hit the back button, the new data I thought was supposed to be on the pushed table is in the 1st table. Any ideas?

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

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

发布评论

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

评论(2

琴流音 2024-09-10 09:45:50

我大概明白了。我发生了一个异步操作,它似乎与线程有关。当我同步调用该方法时,一切都按预期进行。

I sort of figured it out. I have an asynchronous operation occuring and it seems to have something to do with threading. When i call the method synchronously, everything works as expected.

难以启齿的温柔 2024-09-10 09:45:50

在回调中更新内容时,您应该使用 InvokeOnMainThread();

否则你最终会处于糟糕的状态:)

w://

When updating things in a callback you should use InvokeOnMainThread();

Otherwise you'll end up in a bad state :)

w://

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