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

UIView-Encapsulated-Layout-Height constraint issue in iOS 8 #9

Closed
mmkrishna2008 opened this issue Sep 25, 2014 · 1 comment
Closed

Comments

@mmkrishna2008
Copy link

Hi,

I tried your example and its working fine if we have only two or three labels in our cell, if we try to add more labels to the cell , we are getting the below error in xcode 6

"<NSLayoutConstraint:0x7ff368733f60 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7ff3687bedf0(44)]>",
"<NSLayoutConstraint:0x7ff368734a70 V:|-(10)-[UILabel:0x7ff3687bec20'Apple SD Gothic Neo'] (Names: '|':UITableViewCellContentView:0x7ff3687bedf0 )>",
"<NSLayoutConstraint:0x7ff3687352b0 V:[UILabel:0x7ff3687bec20'Apple SD Gothic Neo']-(>=10)-[UILabel:0x7ff36872a9c0'Lorem ipsum dolor sit ame...']>",
"<NSLayoutConstraint:0x7ff3687358e0 V:[UILabel:0x7ff36872a9c0'Lorem ipsum dolor sit ame...']-(>=10)-[UILabel:0x7ff3687c0450'Lorem ipsum dolor sit ame...']>",
"<NSLayoutConstraint:0x7ff368735c00 V:[UILabel:0x7ff3687c0450'Lorem ipsum dolor sit ame...']-(>=10)-[UILabel:0x7ff3687c0040'Lorem ipsum dolor sit ame...']>",
"<NSLayoutConstraint:0x7ff368736200 V:[UILabel:0x7ff3687c0040'Lorem ipsum dolor sit ame...']-(>=10)-[UILabel:0x7ff36872acf0'Lorem ipsum dolor sit ame...']>",
"<NSLayoutConstraint:0x7ff368735e80 UILabel:0x7ff36872acf0'Lorem ipsum dolor sit ame...'.bottom == UITableViewCellContentView:0x7ff3687bedf0.bottom - 10>"

Thanks,
Krishna

@smileyborg
Copy link
Owner

Can you please share the full exception from your console?

Based on what you pasted, it looks like this is the same issue as #5. Please make sure you have read and understand the comment here, and try uncommenting the line of code as suggested: https://github.com/smileyborg/TableViewCellWithAutoLayoutiOS8/blob/master/TableViewCellWithAutoLayout/TableViewController/TableViewCell.swift#L61

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