TLYShyNavBar icon indicating copy to clipboard operation
TLYShyNavBar copied to clipboard

Set a default contentInset not working

Open guillermolechuga opened this issue 9 years ago • 3 comments
trafficstars

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

guillermolechuga avatar Mar 09 '16 17:03 guillermolechuga

+1

heramerom avatar Mar 21 '16 09:03 heramerom

+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 avatar Jan 26 '17 18:01 mattcdmob

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

mattcdmob avatar Jan 27 '17 20:01 mattcdmob