This is my error, " Argument type 'AnyObject.Protocol' does not conform to expected type 'AnyObject'." I get this error when I insert the following code:
What am I doing wrong?
Code:
var constraint = NSLayoutConstraint(item: AnyObject, attribute: NSLayoutAttribute, relatedBy: NSLayoutRelation, toItem: AnyObject?, attribute: NSLayoutAttribute, multiplier: CGFloat, constant: CGFloat)
What am I doing wrong?