How To Fix Swift Error Unable To Activate Constraint With Anchors Because They Have No Common Ancestor & LayoutConstraints Unable To Simultaneously Satisfy Constraints
When I develop an iOS app, I add a UITextField in the app UI programmatically. And I also add some constraints to the UITextField object in swift source code to make it auto layout. But when I run the app, it throws an exception with the error message ‘NSGenericException’, reason: ‘Unable to activate constraint with …