         }
         let screenSize = UIScreen.mainScreen().bounds.size
         UIView.animateWithDuration(0.2) {
-            self.frame = CGRectMake(0, self.parentViewHeight() - 260.0, screenSize.width, 260.0)
+            self.frame = CGRectMake(0, self.parentViewHeight() - (260.0 + self.segementedControlSuperViewHeight), screenSize.width, 260.0 + self.segementedControlSuperViewHeight)
         }
     }
 

        pickerView.backgroundColor = UIColor.whiteColor()
        pickerView.bounds = CGRectMake(0, 0, screenSize.width, 216)
        pickerView.frame = CGRectMake(0, 44, screenSize.width, 216)

        self.addSubview(pickerView)
    }


        initFunc()
    }

    convenience init(rows: [Int], style: PopUpPickerViewStyle = .Default) {
        self.init()
        selectedRows = rows

        if style == .WithSegementedControl {
            let screenSize = UIScreen.mainScreen().bounds.size

            let frame = pickerView.frame
            pickerView.frame = CGRect(x: frame.origin.x, y: frame.origin.y + segementedControlSuperViewHeight, width: frame.size.width, height: frame.size.height)

            // MARK:Add board view
            let v = UIView(frame: CGRect(x: 0, y: 44, width: screenSize.width, height: segementedControlSuperViewHeight))
            v.backgroundColor = UIColor.whiteColor()
            self.addSubview(v)

            let edge = UIEdgeInsets(top: 16, left: 16, bottom: 0, right: 16)
            segmentedControl = UISegmentedControl(frame: CGRect(x: edge.left, y:edge.top, width: screenSize.width - (edge.left + edge.right), height: segementedControlHeight) )

            v.addSubview(segmentedControl!)
        }
    }

    private func initFunc() {
