                     photoVC.delegate = self
                 }
             }
-            
         }
     }
     

    func tapMoreCell(sender: UITapGestureRecognizer) {
        isCollaped = false
        
        let noteCell = tableView.cellForRowAtIndexPath(NSIndexPath(forRow: 0, inSection: 0)) as! NoteCell
        selectedTransaction?.note = noteCell.noteText.text
        
        let amountCell = tableView.cellForRowAtIndexPath(NSIndexPath(forRow: 1, inSection: 0)) as! AmountCell
        selectedTransaction?.amount = NSDecimalNumber(string: amountCell.amountText.text)
        
        UIView.transitionWithView(tableView,
            duration:0.5,

    }
    
    func photoViewController(photoViewController: PhotoViewController, didUpdateImage image: UIImage) {
        let photoCell = self.tableView.cellForRowAtIndexPath(NSIndexPath(forRow: 0, inSection: 3)) as? PhotoCell
        if let photoCell = photoCell {
            photoCell.photoView.image = image
        }
