当以前由于内存不足而未显示时,如何在 iPhone 上强制进行视图渲染?
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有有效的解决方案,但我有一个解决方法可以帮助我解决问题并为我的案例完成工作:
我没有创建带有行的 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.