         // Pass the selected object to the new view controller.
     }
     */
+}
 
+extension NewNoteViewController: UITextViewDelegate {
+    
+    func textViewDidBeginEditing(textView: UITextView) {
+        if textView.textColor == UIColor.lightGrayColor() {
+            textView.text = nil
+            textView.textColor = UIColor.blackColor()
+        }
+    }
+    
+    func textViewDidEndEditing(textView: UITextView) {
+        if textView.text.isEmpty {
+            textView.text = contentViewPlaceHolderText
+            textView.textColor = UIColor.lightGrayColor()
+        }
+    }
 }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func textViewDidBeginEditing(textView: UITextView) {
        if textView.textColor == UIColor.lightGrayColor() {
            textView.text = nil
            textView.textColor = UIColor.blackColor()
        }
    }
    
    func textViewDidEndEditing(textView: UITextView) {
        if textView.text.isEmpty {
            textView.text = contentViewPlaceHolderText
            textView.textColor = UIColor.lightGrayColor()
        }
    }
    
    @IBAction func closeButtonWasPressed(sender: UIBarButtonItem) {


import UIKit

class NewNoteViewController: UIViewController {

    @IBOutlet weak var titleTextField: UITextField!
    
