Please consider the following code:
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCellWithReuseIdentifier("DataItemCell", forIndexPath: indexPath) as DataItemCollectionViewCell
println("\(cell.parametersView.subviews.count)")
return cell
}
and the view hierarchy of the cell:
I can't figure out why output is 0
.
What I'm trying to achieve is to recursively loop through all descendants of parametersView
.