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

constraints problem #14

Closed
leancmscn opened this issue Jun 16, 2016 · 2 comments
Closed

constraints problem #14

leancmscn opened this issue Jun 16, 2016 · 2 comments

Comments

@leancmscn
Copy link

Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint: 0x15df97b0> (null) ((null), (null))",
"<NSAutoresizingMaskLayoutConstraint: 0x15df97e0> H:[GSKStretchyHeaderContentView:0x15eebf10(375)](%28null%29, %28null%29)",
"<NSAutoresizingMaskLayoutConstraint: 0x15df34b0> H:[GSKStretchyHeaderView:0x15d55520(320)](%28null%29, %28null%29)",
"<NSLayoutConstraint: 0x15ee9630> H:[UIView:0x15d5bff0]-(0)-| ((null), (null))",
"<NSLayoutConstraint: 0x15eebba0> (null) ((null), (null))"
)

@leancmscn
Copy link
Author

leancmscn commented Jun 16, 2016

override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        print("currentFactor when viewWillAppear:\(stretchyHeader.stretchFactor)")
        ....

currentFactor when viewWillAppear:0.64

not default = 1.0

@leancmscn
Copy link
Author

fixed after add this.
tableView.sectionFooterHeight = 0

I use group style table

@gskbyte gskbyte closed this as completed Jun 16, 2016
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