     @IBOutlet weak var imageView: UIImageView!
     @IBOutlet weak var topConst: NSLayoutConstraint!
     
+    var backgroundView: UIView?
+    
     let menu = ["Vertretungsplan", "Klausuren", "Einstellungen", "Termine", "Lehrerliste", "Abmelden"]
 
     var slideController: FWSlideMenuController?

    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.view.backgroundColor = UIColor(patternImage: UIImage(named: "pattern")!)
        
        self.imageView.image = UIImage(named: "woman")!
        self.label.text = "Felix Wehnert"
        self.tableView.backgroundColor = UIColor.clearColor()
    }

    override func didReceiveMemoryWarning() {

                self.imageView.alpha = 1
                self.label.alpha = 1
                self.tableView.alpha = 1
                self.topConst.constant = 15
                self.backgroundView?.frame.origin.x = 0
                self.view.layoutIfNeeded()
            } else {
                self.imageView.alpha = 0
                self.tableView.alpha = 0
                self.label.alpha = 0
                self.topConst.constant = -35
                self.backgroundView?.frame.origin.x = 50
                self.view.layoutIfNeeded()
            }
        }
