     override func viewWillAppear(animated: Bool) {
         super.viewWillAppear(animated)
         
-        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CreateProductViewController.keyboardWillShow), name: UIKeyboardWillShowNotification, object: nil)
-        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CreateProductViewController.keyboardWillHide), name: UIKeyboardWillHideNotification, object: nil)
-
         photoImageView.userInteractionEnabled = true
         photoImageView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(CreateProductViewController.addNewImage)))
-        
-//        self.view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "closeKeyboard"))
-    }
-    
-    override func viewWillDisappear(animated: Bool) {
-        super.viewWillDisappear(animated)
-        
-        NSNotificationCenter.defaultCenter().removeObserver(self, name: UIKeyboardWillShowNotification, object: nil)
-        NSNotificationCenter.defaultCenter().removeObserver(self, name: UIKeyboardWillHideNotification, object: nil)
     }
     
     override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {

    
    func addNewImage() {
        prepareImagePicker()
    }
    
    func closeKeyboard() {
        textFields.forEach{$0.resignFirstResponder()}
    }
    
    func saveProduct() {

    
    @IBOutlet weak var containerViewHeightConstraint: NSLayoutConstraint!
    
    private var contentOffset: CGFloat?
    
    private var imagePicker: UIImagePickerController!
