dimanche 2 août 2015

iOS 8 Custom Self Sizing Table View : Unable to simultaneously satisfy constraints

In table view controller, i am using custom tableview cell. This cell contain a UIImage Control on left side of cell and two labels(one is for product name and other is for product description, which can be varying length) to the right of this UIImage. I have added Auto Layout constraints on all three controls. There is no issue in AutoLayout control. However when i run app, i got following error messages (one for each row in the table) and a couple of top rows are not as per auto layout constraints, but however when i scroll down and then scroll up, everything is rendered as per the auto layout constraints

Debug Log:

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) ( "", "", "", "", "" )

Will attempt to recover by breaking constraint

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful.

Aucun commentaire:

Enregistrer un commentaire