当以前由于内存不足而未显示时,如何在 iPhone 上强制进行视图渲染?

发布于 2025-01-04 03:21:39 字数 235 浏览 3 评论 0原文

我正在使用 Titanium,并且有一个包含大约 20 个条目的 TableView,每个条目都包含一个 ScrollableView,该 ScrollableView 本身也有一些视图。

当滚动表格时,iOS 会隐藏 ScrollableView 中的一些视图,因为内存不足。

一旦我触摸 ScrollableView 并稍微移动它,隐藏的视图就会再次渲染并再次可见。

有没有办法强制屏幕上的视图自动渲染?

I am using Titanium and have a TableView with about 20 entries, each containing a ScrollableView that has some views itself.

When scrolling thru the table, the iOS hides some views within the ScrollableView because the memory gets low.

As soon as I touch the ScrollableView and move it slightly, the hidden view gets rendered again and is visible again.

Is there a way to force the view rendering on the screen automatically?

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

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

发布评论

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

评论(1

小嗷兮 2025-01-11 03:21:39

我还没有有效的解决方案,但我有一个解决方法可以帮助我解决问题并为我的案例完成工作:

我没有创建带有行的 TableView,而是创建了带有单个视图而不是 TableViewRows 的 ScrollView。使用此解决方法,ScrollableViews 的内容只要出现在屏幕上就会始终显示。

I have no working solution (yet) but I have a workaround that helped me out and did the job for my case:

Instead of creating a TableView with rows I created a ScrollView with single Views instead of TableViewRows. Using this workaround, the content of the ScrollableViews is always shown whenever they it appears on the screen.

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