How to do Auto Layout XIB being added programmatically?Sorry to bother you again. But I tried this one and it's still not working. [self.scrollView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-[newsView]-(10)-[anotherNewsView]-|" options:0 metrics:nil views:viewsDict]]; I believe that would mean placing anotherNewsView 10px apart from newsView?