UITableViewCells do not layout UILabels correctly.
| Originator: | rog.nolan | ||
| Number: | rdar://18349693 | Date Originated: | 16 Spet 2014 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.0 |
| Classification: | Reproducible: |
Summary: The attached UITableView and static cell silently break their IB layout constraints. The constraints are not ambiguous yet the layout engine moves the label "hello" off the right hand side of the screen. The layout engine also fails to calculate a good width for the "This is too much text ..." label. In reality, it should be able to calculate a maximum width, setup `preferredMaxLayoutWidth` and then have the cell layout with all text over two lines. Steps to Reproduce: Ru the attached project. Expected Results: Cells should have two text fields, one should be two lines. All text should be displayed. Actual Results: Only see one text field, its truncated. Version: 6A1030 Notes: Configuration: Xcode 6.1ß2 iOS8 simulator. Attachments: 'celllayout.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!