ko1o / PYPhotoBrowser

An easy way to browse photo(image) for iOS.
MIT License
2.01k stars 416 forks source link

在cell中加载网络图片会卡顿,怎么解决?? #181

Open ShuangZiMoYin opened 6 years ago

ShuangZiMoYin commented 6 years ago

PYPhotosView只添加一次,然后在- (UITableViewCell )tableView:(UITableView )tableView cellForRowAtIndexPath进行赋值操作cell.photosView.placeholderImage = [UIImage imageNamed:@"c_d_photo"]; cell.photosView.originalUrls = urls; cell.photosView.layoutType = PYPhotosViewLayoutTypeLine; // 设置Frame cell.photosView.py_y = lxw_cMargin; cell.photosView.py_x = lxw_cMargin; cell.photosView.py_width = lxwWidth-2*lxw_cMargin; cell.photosView.photoMargin = lxwSize(10); cell.photosView.photoWidth = lxwSize(155); cell.photosView.photoHeight = lxwSize(112);