telly / TLYShyNavBar

Unlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars!
MIT License
3.73k stars 427 forks source link

Set a default contentInset not working #129

Open guillermolechuga opened 8 years ago

guillermolechuga commented 8 years ago

Hi!

In my view controller, I was making my navigation bar completely transparent and forcing the contentInset to zero so the content (an image) appeared behind the navigation bar.

After assigning the shy scroll view, I've lost this behavior: the content starts just below the navigation bar, but not behind it.

Is there a way of presetting an initial value for contentInset / scrollIndicatorInsets?

Kind regards, Guillermo

heramerom commented 8 years ago

+1

mattcdmob commented 7 years ago

+1 I am trying to do the opposite. I have set the content offset to be larger while creating a custom stretchy image atop my tableview similar to a Spotify app page. I have lost this behavior. The image still stretches but its default height is always the height of a navigation bar.

mattcdmob commented 7 years ago

I just realized that the content inset works fine on a UITableView if you set hasCustomRefreshControl to true.