开发者

UITableViewCell and UIImageView

开发者 https://www.devze.com 2022-12-09 20:26 出处:网络
I\'m currently trying to fix the performance of my UITableView. Basically all it is is a custom UITableViewCell with a UIImageView.

I'm currently trying to fix the performance of my UITableView. Basically all it is is a custom UITableViewCell with a UIImageView.

At the moment, this image is loaded in the tableView:willDisplayCell: method, however the performance is pretty bad so I decided to try and load t开发者_运维问答he image asynchronously using an NSThread, but this results in the UITableView looking really weird (it jumps all over the place and loads the images oddly).

Does anybody have the best way to load images in UITableViewCells?


Have you tried loading it in

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

and making it a reusable cell?

0

精彩评论

暂无评论...
验证码 换一张
取 消