Skip to content
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

support for autolayout #31

Open
tcurdt opened this issue May 21, 2014 · 5 comments
Open

support for autolayout #31

tcurdt opened this issue May 21, 2014 · 5 comments

Comments

@tcurdt
Copy link

tcurdt commented May 21, 2014

With autolayout the views usually have a zero size before the frame gets assigned by the system. Which causes an NSAssert at least in with version '~> 0.8' (which is the latest version on cocoapods)

https://github.com/mochidev/MDSpreadView/blob/master/Classes/MDSpreadView.m#L2114

I haven't tried master or 0.9 yet.

@tcurdt
Copy link
Author

tcurdt commented May 21, 2014

Same in 0.9

@dimitribouniol
Copy link
Member

I just pushed a fix that works around the issue when the size was previously 0 in one direction or another. In my use case, it was specifically for a height that equalled that of the table header, so please test it to make sure it works when the frame size is 0 as well.

@tcurdt
Copy link
Author

tcurdt commented May 23, 2014

Thanks. Will give it a try.

@dimitribouniol
Copy link
Member

Does this work correctly now?

@tcurdt
Copy link
Author

tcurdt commented Jun 10, 2014

Sorry, didn't get around to test it yet. Still using the hack I put in place.

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