manchmal Fortschrittsbalken meine ColectionViewCell die nicht sichtbar ist,
i in jeder Zeile einige Elemente haben und unten bin versucht ProgressBar eines einzelnen Elements zu verstecken, aber mein Fortschrittsbalken bekam versteckt von allen Elementen einer Zeileeine Ansicht von einem einzigen Element in Reihe (collectionViewCell Item) verstecken
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
}
eine Idee, wie das zu beheben ???
, wenn Ihre Fortschrittleiste ausgeblendet? Welche Zelle hast du versteckt? –
Ich dint dir Mann @IyyappanRavi, was du fragst? –