Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Set a default contentInset not working #129

Open
guillermolechuga opened this issue Mar 9, 2016 · 3 comments
Open

Set a default contentInset not working #129

guillermolechuga opened this issue Mar 9, 2016 · 3 comments

Comments

@guillermolechuga
Copy link

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
Copy link

+1

@mattcdmob
Copy link

+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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants