gskbyte / GSKStretchyHeaderView

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

Add Animation when change maximumHeightContent? #43

Closed hdphuhk closed 7 years ago

hdphuhk commented 7 years ago

Hi sir, as my issue title. Can I normally add some animation when changing maximumHeightContent? I try to put my change height code into UIView animate block but nothing happend. Thanks

gskbyte commented 7 years ago

Hi, it should be possible in theory, but you will also have to change its frame manually by scrolling down the scroll view inside the UIView animation block. -setMaximumContentHeight: does not change the size of the header view automatically: https://github.com/gskbyte/GSKStretchyHeaderView/blob/master/GSKStretchyHeaderView/Classes/GSKStretchyHeaderView.m#L89

hdphuhk commented 7 years ago

Hi, can I strech the view by code, instead by user finger? :(

gskbyte commented 7 years ago

Hi, I explained it in my previous comment :)