I'm trying to set a constraint on 2 views so that they touch each other like this:

I tried setting constraints programmatically:
[self addConstraint:[NSLayoutConstraint constraintsWithVisualFormat:@"[_firstView][_secondView]" options:0 metrics:nil views:NSDictionaryOfVariableBindings(_firstView, _secondView)]];
But I get the following warning:
Incompatible pointer types sending 'NSArray *' to parameter of type 'NSLayoutConstraint'
What am I doing wrong?