title: Autolayout error in iOS 8 but not in iOS 7
body: <p>Im getting this error but only in iOS 8 
  <code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSLayoutConstraint constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant:]: Constraint must contain a first layout item'</code></p>
  
  <p>When the exception happens the problem is the code doesnt break on the line itself. The code is breaking on the creation of a button, well any UIButton for that matter. I even commented out the button the code was breaking and it just crashed on the next button being created. I read online this error is caused by one of the parameters being nil but i cant seem to find it because the line of code it is breaking on is never displayed.</p>