Constraints error / warning at runtime

When i run my App i get the following error / warning.
When i work in design view i get no error / warning at all.
Where do i need to look for solving this probleem.

The error / warning get thrown when i jump from one uitextfield to another.

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) 

(
“<NSAutoresizingMaskLayoutConstraint:0x604000282cb0 h=–& v=–& UIKeyboardAssistantBar:0x7fbd5be14700.height == 0 (active)>”,
“<NSLayoutConstraint:0x60c00009b3a0 V:|-(0)-[_UIButtonBarStackView:0x7fbd5be156a0] (active, names: ‘|’:UIKeyboardAssistantBar:0x7fbd5be14700 )>”,
“<NSLayoutConstraint:0x60c00009b3f0 V:[_UIButtonBarStackView:0x7fbd5be156a0]-(0)-| (active, names: ‘|’:UIKeyboardAssistantBar:0x7fbd5be14700 )>”,
“<NSLayoutConstraint:0x60c0002824e0 ‘UIButtonBar.maximumAlignmentSize’ _UIButtonBarButton:0x7fbd5f11bf30.height == UILayoutGuide:0x6040001bb3c0’UIViewLayoutMarginsGuide’.height (active)>”,
“<NSLayoutConstraint:0x604000096760 ‘UIView-bottomMargin-guide-constraint’ V:[UILayoutGuide:0x6040001bb3c0’UIViewLayoutMarginsGuide’]-(9)-| (active, names: ‘|’:_UIButtonBarStackView:0x7fbd5be156a0 )>”,
“<NSLayoutConstraint:0x6040000966c0 ‘UIView-topMargin-guide-constraint’ V:|-(10)-[UILayoutGuide:0x6040001bb3c0’UIViewLayoutMarginsGuide’] (active, names: ‘|’:_UIButtonBarStackView:0x7fbd5be156a0 )>”
)

This is only a part of the message.

@erich_snijder Thanks very much for your question, and my apologies for the delayed response!

Debugging AutoLayout in code can be tricky. What I would suggest is gradually implement the constraints to see which one is causing the problem. Do this one at a time, and see at which point you get the error you are getting. Another approach I would reluctantly suggest (because I don’t want you to do twice the work), is to comment out the constraints that you have being implemented in code, and based on your code ONLY, re-implement the same constraints in Interface Builder, and this way you can see visually perhaps where you are going wrong.

As a side, we do offer video courses on AutoLayout, both beginner, and advanced which could help you build your AutoLayout skills :slight_smile:

I hope this helps!

All the best!