         self.view.addConstraints([trailingConstraint,leadingConstraint,topSpaceConstraint])
         self.view.setNeedsLayout()
         self.view.layoutIfNeeded()
-        println(viewContainer.bounds.width)
     }
     
     private func createRowsContainers(rowsCount:Int,container:UIView){

        let centerXConstraint = NSLayoutConstraint(item: container, attribute: NSLayoutAttribute.CenterX, relatedBy: NSLayoutRelation.Equal, toItem: view, attribute: NSLayoutAttribute.CenterX, multiplier: 1, constant: 0)
        container.addConstraints([leadingConstraint,leadingConstraint,centerXConstraint])
        createButtonsForRow(row,rowView:view)
        if(row + 1 < buttonRows.count && buttonRows[row + 1].title != nil){
            return createSeparator(row + 1, lastRow: view,container:container)
        }
        container.setNeedsLayout()
        container.layoutIfNeeded()
        return view

        view.setTranslatesAutoresizingMaskIntoConstraints(false)
        container.addSubview(view)
        if let previousRow = previousRow{
            var prev:UIView!
            if(buttonRows[row].title != nil){
                prev = createSeparator(row, lastViewAdded: previousRow,container:container)
            }else{
                prev = previousRow
            }
            let topSpaceToPreviousRow = NSLayoutConstraint(item: view, attribute: NSLayoutAttribute.Top, relatedBy: NSLayoutRelation.Equal, toItem: prev, attribute: NSLayoutAttribute.Bottom, multiplier: 1, constant: rowsPadding)
            container.addConstraint(topSpaceToPreviousRow)
            
        }else{
            let topSpaceToSuperview = NSLayoutConstraint(item: view, attribute: NSLayoutAttribute.Top, relatedBy: NSLayoutRelation.Equal, toItem: container, attribute: NSLayoutAttribute.Top, multiplier: 1, constant: fristRowPadding)
            container.addConstraint(topSpaceToSuperview)
