Skip to content

Does not work with Storyboard TableView and AutoLayout #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Urkman opened this issue Feb 5, 2015 · 2 comments
Open

Does not work with Storyboard TableView and AutoLayout #17

Urkman opened this issue Feb 5, 2015 · 2 comments

Comments

@Urkman
Copy link

Urkman commented Feb 5, 2015

Hello,

I don't get it to work with a storyboard TableView and AutoLayout :(
I did some debugging and the _contentView always has a sizeof 0.0...

Any help on this?

Thanks,
Urkman

@Urkman
Copy link
Author

Urkman commented Feb 5, 2015

It is easy to reproduce:
1.) make the tableview in JPBParallaxTableViewController an Outlet and machete public
2.) Add TableView to the example storyboard and connect it to the Outlet
3.) Add 0 top, left, right and bottom margins to the TableView using Constrains
4.) run the example

There you see the Tableview has disappeared...

@stevemoser
Copy link

@Urkman Since this lib adds the tableview to the scroll view you can't add it to the view in the Storyboard. To work around this setup your storyboard with your tableview till everything is the way you like then drag the tableview up a leave so that it isn't contained in the view. Then create a IBOutlet to your tableview and return that tableview in the content view method like what is shown in the example.

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

No branches or pull requests

2 participants