                                                                              options: [], metrics: metrics, views: views)
             allConstraints += constraint2
             NSLayoutConstraint.activateConstraints(allConstraints)
+        case 2 where self.isIOS9 == true:
+            if #available(iOS 9.0, *) {
+                // Creating the same constraints using Layout Anchors: from iOS 9.0
+                let margins = view.layoutMarginsGuide
+                label.leadingAnchor.constraintEqualToAnchor(margins.leadingAnchor).active = true
+                
+                let bottomLayoutGuide = self.bottomLayoutGuide
+                bottomLayoutGuide.topAnchor.constraintEqualToAnchor(label.bottomAnchor, constant: 20.0).active = true
+            }
+        default:
+            // Creating constraints using NSLayoutConstraint: from iOS 6.0
+            NSLayoutConstraint(item: label, attribute: .Leading, relatedBy: .Equal, toItem: self.view,
+                               attribute: .LeadingMargin, multiplier: 1.0, constant: 0).active = true
+            
+            NSLayoutConstraint(item: self.bottomLayoutGuide, attribute: .Top, relatedBy: .Equal, toItem: label,
+                               attribute: .Bottom, multiplier: 1.0, constant: 20.0).active = true
         }
     }
     func createRightTopLabel() {

        let label = UILabel()
        label.text = "Right Top"
        label.translatesAutoresizingMaskIntoConstraints = false
        label.backgroundColor = UIColor.yellowColor()
        self.view.addSubview(label)
        
        //Config constraints
        switch constaintType {
        case 0:
            // Creating constraints using NSLayoutConstraint: from iOS 6.0
            NSLayoutConstraint(item: label, attribute: .Trailing, relatedBy: .Equal, toItem: self.view,
                               attribute: .TrailingMargin, multiplier: 1.0, constant: 0).active = true
            
            NSLayoutConstraint(item: label, attribute: .Top, relatedBy: .Equal, toItem: self.topLayoutGuide,
                               attribute: .Bottom, multiplier: 1.0, constant: 20.0).active = true
        case 2 where self.isIOS9 == true:
            if #available(iOS 9.0, *) {
                // Creating the same constraints using Layout Anchors: from iOS 9.0
                let margins = view.layoutMarginsGuide
                label.trailingAnchor.constraintEqualToAnchor(margins.trailingAnchor).active = true
                
                let topLayoutGuide = self.topLayoutGuide
                label.topAnchor.constraintEqualToAnchor(topLayoutGuide.bottomAnchor, constant: 20.0).active = true
            }
        default:
            // Creating constraints using Visual Format Language: from iOS 6.0
            let metrics = ["padding":20.0]
            let views : [String : AnyObject] = ["label": label,"topLayoutGuide": topLayoutGuide]

                                                                             options: [], metrics: metrics, views: views)
            allConstraints += constraint2
            NSLayoutConstraint.activateConstraints(allConstraints)
        case 2 where self.isIOS9 == true:
            if #available(iOS 9.0, *) {
                // Creating the same constraints using Layout Anchors: from iOS 9.0
                let margins = view.layoutMarginsGuide
                label.trailingAnchor.constraintEqualToAnchor(margins.trailingAnchor).active = true
                
                let topLayoutGuide = self.topLayoutGuide
                label.topAnchor.constraintEqualToAnchor(topLayoutGuide.bottomAnchor, constant: 20.0).active = true
            }
        default:
            // Creating constraints using NSLayoutConstraint: from iOS 6.0
            NSLayoutConstraint(item: label, attribute: .Trailing, relatedBy: .Equal, toItem: self.view,
                               attribute: .TrailingMargin, multiplier: 1.0, constant: 0).active = true
            
            NSLayoutConstraint(item: label, attribute: .Top, relatedBy: .Equal, toItem: self.topLayoutGuide,
                               attribute: .Bottom, multiplier: 1.0, constant: 20.0).active = true
        }
    }
    func createRightBottomLabel() {
        //Create label
        let label = UILabel()
        label.text = "Right Bottom"
        label.translatesAutoresizingMaskIntoConstraints = false
        label.backgroundColor = UIColor.greenColor()
        label.tag = 104
        self.view.addSubview(label)
        
        //Config constraints
        switch constaintType {
        case 1:
            // Creating constraints using Visual Format Language: from iOS 6.0
            let metrics = ["padding":20.0]
            let views : [String : AnyObject] = ["label": label,"bottomLayoutGuide": bottomLayoutGuide]
