Hello I have a UICollectionView
. In a particular cell I have many views like UserProfileView
, ProductView
, CommentBoxView
etc. In CommentBoxView
there is a text view where the user can type and then post the comment. After posting the comment I want to focus that particular cell, from which cell user have posted the comment. For this I have used :
func indexPathForPreferredFocusedView(in collectionView: UICollectionView) -> IndexPath? {
return IndexPath(row: 2, section: 0)
}
I am testing with the hardcoded value but still it is not coming. Please any one help me regarding this matter.