UICollectionview inside uitableview cell height automaticdimention not working while set collection view

Problem:

I'm having one tableviewcell inside that one collectioviewcell tableview height is dynamic.But sometimes tableview contentsize came as zero.How to solve that?

My code is like below

            Cell.collViewHeightConstraint.constant = Cell.collectionView.ContentSize.height

 

Solution:

            Cell.collViewHeightConstraint.constant = Cell.collectionView.collectionViewLayout.collectionViewContentSize.height


Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift