What is fittingSizeHTarget?
What is fittingSizeHTarget?
- Subject: What is fittingSizeHTarget?
- From: Cosmo <email@hidden>
- Date: Thu, 09 Oct 2014 17:02:03 -0700
I wonder if anybody can tell me what I might be doing wrong. I used layout
constraints in InterfaceBuilder to define the layout for a UITableView
cell. The cell renders correctly, but I get a warning for each cell
displayed that contains a reference to a "FittingSizeHTarget" constraint
that I did not add. This is in Xcode 6.0.1, with a storyboard that uses
size classes, for an iOS app that is targeted at iOS 8. If it matters, the
tableViewController displaying these cells uses dynamic sizing.
I have also tried a version of the cell with all the constraints handled in
code instead of in IB, and I get the same warning for each cell. If it
makes a difference, the code is in Swift, and runs without reporting any
compiler errors.
2014-10-01 09:12:08.129 MyApp[1825:365556] 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)
(
"<NSLayoutConstraint:0x14dc8bb0 H:[UIImageView:0x14dc80c0(60)]>",
"<NSLayoutConstraint:0x14dc9140 H:|-(16)-[UIImageView:0x14dc80c0]
(Names: '|':UITableViewCellContentView:0x14dc8050 )>",
"<NSLayoutConstraint:0x14dc91d0
H:[UIImageView:0x14dc80c0]-(8)-[UILabel:0x14dc8d00'My Funny Valentine: In
Co...']>",
"<NSLayoutConstraint:0x14dc9200 UILabel:0x14dc8d00'My Funny Valentine:
In Co...'.trailing == UITableViewCellContentView:0x14dc8050.trailing + 20>",
"<NSLayoutConstraint:0x14ec7150 'fittingSizeHTarget'
H:[UITableViewCellContentView:0x14dc8050(33)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x14dc8bb0 H:[UIImageView:0x14dc80c0(60)]>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden