collectionView scrollToItemAtIndexPath not scrolling down Initially when keyboard is visible
user47165 Published in September 19, 2018, 7:20 pm
Was hoping somebody can help me with this very frustrating behaviour.
My UICollectionView scrollToItemAtIndexPath works perfectly in all scenarios EXCEPT when the keyboard is visible and the content size is smaller than a value of about 780 px in height. After the content size grows beyond this the scroll works as it should and at all times when the keyboard is hidden.
My entire collectionView along with other views are embedded in a scrollView.
The keyboardWillShow method contains the following:
It almost seems as if the height of the collectionView is somehow set to a large number which ignores AutoLayout constraints and the scroll only becomes active when the content size exceeds that value.
ios swift uicollectionview scrollview
share|improve this question
edited Jul 19 '15 at 2:19
asked Jul 19 '15 at 2:08
Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.
Browse other questions tagged ios swift uicollectionview scrollview or ask your own question.