時々ColectionViewCellの進行状況バーが表示されない
すべての行にいくつかの項目があり、その下にあるProgressBarを非表示にしようとしていますが、行のすべての項目から非表示Row(collectionViewCell Item)内の単一の項目からビューを非表示にする
func collectionView(collectionView: UICollectionView,
cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCellWithReuseIdentifier("Cell",
forIndexPath: indexPath) as! CollectionViewCell
let url = NSURL(string: "\(attachedImgUrlDict[collectionView.tag]![indexPath.item])")// its a Url
cell.imgViewOfCell.sd_setImageWithURL(url, placeholderImage: nil, options: SDWebImageOptions.CacheMemoryOnly, progress: {
(receivedSize, expectedSize) -> Void in
// Update progress here
cell.loaderView.progress = CGFloat(receivedSize)/CGFloat(expectedSize)
}) {
(image, error, _, _) -> Void in
// Reveal image here
cell.imgViewOfCell.image = self.ResizeImage(image , targetSize: CGSizeMake(cell.imgViewOfCell.frame.width , cell.imgViewOfCell.frame.height))
cell.loaderView.hidden = true // am hiding the progress bar here when the loads complete (of a single item) but seems like its hiding the progressView of all items in the row
}
return cell
}
どのようにこれを修正するか?あなたの答えを得るので
のようなタグを入力してください。あなたは隠したセルですか? –
私はあなたに何を求めているのですか?IyyappanRaviあなたは何を求めていますか? –