     }
 
     func pinEdge(edge: EdgeAnchor, toEdge: EdgeAnchor, ofView: UIView, relation: NSLayoutRelation = .Equal, constant: CGFloat = 0.0, priority: UILayoutPriority = UILayoutPriorityRequired, activate: Bool = true) -> NSLayoutConstraint {
-        let fromAnchor = self.anchorForEdge(edge)
-        let toAnchor = ofView.anchorForEdge(toEdge)
+        let fromAnchor = self.layoutAnchorForEdge(edge)
+        let toAnchor = ofView.layoutAnchorForEdge(toEdge)
 
         let constraint: NSLayoutConstraint
         if relation == .GreaterThanOrEqual {


        let currentDimension: NSLayoutDimension

        let fromDimension = self.anchorForSize(sizeAnchor)
        let toDimension = ofView.anchorForSize(toSizeAnchor)

        let constraint: NSLayoutConstraint
        if relation == .GreaterThanOrEqual {

                    priority = UILayoutPriorityRequired
                }

                let currentAnchor = self.layoutAnchorForEdge(edge)
                let viewAnchor = view.layoutAnchorForEdge(edge)
                let constraint: NSLayoutConstraint
                if relation == .GreaterThanOrEqual {
                    constraint = currentAnchor.constraintGreaterThanOrEqualToAnchor(viewAnchor, constant: constant)
