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

        pickerView.backgroundColor = UIColor.whiteColor()

        self.bounds = CGRectMake(0, 0, screenSize.width, 260)
        self.frame = CGRectMake(0, screenSize.height, screenSize.width, 260)
        pickerToolbar.bounds = CGRectMake(0, 0, screenSize.width, 44)
        pickerToolbar.frame = CGRectMake(0, 0, screenSize.width, 44)
        pickerView.bounds = CGRectMake(0, 0, screenSize.width, 216)

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

