UITableViewCell直到滚动才显示 [英] UITableViewCell not showing until scrolling
问题描述
我遇到的问题是,除非您向下滚动使其不可见并向上滚动以再次查看,否则UITableViewCell的图像(我将其自定义为仅包含图像的单元格)在下载后没有显示.
I'm having an issue where my UITableViewCell's image (I customized it into a cell with just the image) is not showing up after being downloaded unless you have scrolled down to make it invisible and scroll up to see again.
我正在使用HJCache进行异步图像下载和缓存.我不确定这是否是HJCache或UITableViewCell的问题以及如何解决.
I am using HJCache for asynchronous image downloading as well as caching. What I am not sure is if this was the issue with HJCache or my UITableViewCell and how to fix it.
推荐答案
好吧,因为我找到了最荒谬的解决方案,所以我只想回答我自己的问题.
Well, I'm just going to answer my own question since I had found the most ridiculous solution.
尝试了各种方法和头痛之后,我从模拟器中删除了该应用程序(+缓存),一切似乎都再次正常运行.
After trying out various methods and headaches, I deleted the app ( + cache) from the simulator and everything seems to be working properly again.
我最好的猜测是HJCache在本地存储的未完成图像正在混乱.
My best guess is that the locally stored unfinished images by HJCache were messing up.
这篇关于UITableViewCell直到滚动才显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!