         self.navigationController?.popViewControllerAnimated(true)
     }
     
-    func keyboardWillShow() {
-        setViewMovedUp(true)
-    }
-    
-    func keyboardWillHide() {
-        setViewMovedUp(false)
-    }
-    
     private func setShopLabel(shop: NearShop) {
         shopNameLabel.text = shop.shopName
-    }
-    
-    private func setViewMovedUp(movedUp: Bool) {
-//        UIView.animateWithDuration(0.3) { () -> Void in
-//            if (movedUp) {
-//                self.contentOffset = self.scrollView.contentOffset.y
-//                self.scrollView.contentOffset = CGPointMake(0, self.kOFFSET_FOR_KEYBOARD)
-//            } else {
-//                // revert back to the normal state.
-//                self.scrollView.contentOffset = CGPointMake(0, self.contentOffset ?? 0)
-//            }
-//        }
     }
     
     private func prepareImagePicker(){

    
    @IBOutlet weak var containerViewHeightConstraint: NSLayoutConstraint!
    
    private let kOFFSET_FOR_KEYBOARD:CGFloat = 100.0
    private var contentOffset: CGFloat?
    
    private var imagePicker: UIImagePickerController!

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        
        photoImageView.userInteractionEnabled = true
        photoImageView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(CreateProductViewController.addNewImage)))
    }
    
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
