Search code examples
iosuitableviewnslayoutconstraint

LayoutConstraints Error when separator for UITableView is removed


This is my current view:

Main View

As soon as I try and remove the line seperator from the UITableView if throws an error that is: Unable to simultaneously satisfy constraints

But, to test the same that the error is not due to redundant constraints the result still remains the same.

The error for the same goes of when the line seperator for the UITableView is set back to default again

Console O/P:

Console O/P

Main View Hierarchy:

Main View Hierarchy

As it is visible there are no constraints applied to the current view


Solution

  • I tried remove all the auto-layout constraints from the view and still the error remained.

    The only way to keep no separator lines visible and to not have any LayoutConstraints is to set the colour of the separator lines to clear colour

    This is possibly a Xcode bug