更新 IKImageBrowserView 的单个图像
我到处搜索,似乎找不到办法做到这一点。
我目前正在制作一个简单的应用程序来帮助我们的用户为另一个应用程序配置图像元数据。
我提供了要在 IKImageBrowserView 中配置的图像列表。用户选择图像。然后显示在另一个视图中并向其中添加内容。
我希望能够在用户操作图像时“实时”更新 IKImageBrowserView 缩略图。我可以对他正在工作的视图进行“屏幕截图”,但我无法找到一种方法来更新这个单个 IKImageBrowserView 项目,而无需调用 reloadData。
有没有办法在不调用 reloadData 的情况下更新 IKImageBrowserView 中的单个图像?
谢谢!
I searched everywhere and can't seem to find a way to do this.
I am currently making a simple application to help our user configure image metadata for another application.
I present the list of image to be configured in an IKImageBrowserView. The user selects an image. which is then displayed in another view and adds stuff to it.
I'd like to be able to update the IKImageBrowserView thumbnail "live", as the user manipulates the image. I am able to take a "screenshot" of the view on which he is working but can't for the life of me find a way to update this single IKImageBrowserView item without having to call reloadData.
Is there a way to update a single image in an IKImageBrowserView without calling reloadData?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 -imageVersion 方法。这将导致该项目的缓存失效。似乎还有一个可能令人感兴趣的私有
-reloadCellDataAtIndex:
方法。不过,更新图像的版本并调用-reloadData
就足够了。Look at the -imageVersion method. This will cause the cache for that item to be invalidated. There also appears to be a private
-reloadCellDataAtIndex:
method that might be of interest. Updating the image's version and calling-reloadData
should be sufficient though.