gskbyte / GSKStretchyHeaderView

A generic stretchy header for UITableView and UICollectionView
MIT License
1.75k stars 185 forks source link

Using GSKStretchyHeaderView with UIViewController #37

Closed ericpark closed 7 years ago

ericpark commented 7 years ago

Hi gskbyte,

I'm currently working on a project in swift trying to use GSKStretchyHeaderView. Instead of a tableview or collectionview, I want to use a UIViewController instead. Do you know if there is any easy way of doing this?

gskbyte commented 7 years ago

Hi Eric,

yes, you can just add a UIScrollView to your viewController.view whose contentSize equals the screen size, and you put the header view inside it.

Hope it helps!