devonboyer / DBProfileViewController

A customizable library for creating stunning user profiles.
MIT License
15 stars 3 forks source link

Bottom empty space when using collection view #24

Open Jackson0111 opened 8 years ago

Jackson0111 commented 8 years ago

This has been brought up before in issue #2 but setting bottom contentInset to 0 doesn't solve the problem. Somehow it disables scroll too. I've been spending lots of time trying to solve this issue but couldn't find a solution. Any idea how this could be avoided?

Ashenyx commented 8 years ago

It's been too long, but...

I have tried swizzling around with this pod and figured out that commenting out a line would do the magic... If you go over to the DBProfileViewController.m and look into the -updateContentInsetForScrollView: method, you will find a conditional statement that sets contentInset's bottom property. Comment that out and the issue will be resolved.