                     let accommodation = theAccommodation
                     
                     cell.nameLabel.text = accommodation.name
-                    //                cell.phoneLabel.text = accommodation.phone
                     cell.addressLabel.text = accommodation.address
                     cell.checkinDateTextField.text = accommodation.checkinDate
                     cell.checkoutDateTextField.text = accommodation.checkoutDate

    }
    
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    
        
        switch rows[indexPath.row] {
            
        case .title:
            
            
            if allArray.count - 1 >= indexPath.row{

                let cell = allArray[indexPath.row] as! AddTableViewCell
                
                // Handle the text field’s user input via delegate callbacks.
                cell.startDateTextField.delegate = self
                cell.returnDateTextField.delegate = self
                
//                // Set up views if editing an existing data.
//                if let post = post {
//                    
//                    cell.titleTextField.text = post.title
//                    cell.countryTextField.text = post.country
//                    cell.startDateTextField.text = post.startDate
//                    cell.returnDateTextField.text = post.returnDate
//                }
                
                cell.countryTextField.inputView = pickerView
                allArray[indexPath.row] = cell
                return cell
                
            }else{
                
                
                
                let cellIdentifier = "titleCell"
                let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier, forIndexPath: indexPath) as! AddTableViewCell

                allArray.addObject(cell)
                return cell
            }
            
        case .attraction:
            
