This label seems to return nil, even though I have the reuseIdentifier and tag set properly.
override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
var identifier: String = "CollectionCell"
var cell: UICollectionViewCell = collectionView.dequeueReusableCellWithReuseIdentifier(identifier, forIndexPath: indexPath) as! UICollectionViewCell
// Configure the cell
//save till later, when images are actually present
//var cellItem1 = hostManager[indexPath.row * 2]
let label:UILabel = cell.viewWithTag(1) as! UILabel
return cell
}
The program breaks where the label is set = to the viewWithTag. I have no custom class set for the cell, just the prototype. The tag is set on the storyboard. Getting an error "EXC_BAD_INSTRUCTION...". Any help would be appreciated, Thanks!