title: how to change UIImageVIew from appdelegate in Swift?
body: <p>I have a problem. I'm trying change an <code>UIImageView</code> from <code>appDelegate</code> with a <code>NSNotificationCenter</code> function but I get an error. When I change this from <code>didFinishLaunchingWithOptions</code> function with the <code>NSNotificationCenter</code> I get an <code>Exc_Breakpoint</code></p>
  
  <p>In AppDelegate:</p>
  
  <pre><code>  var classView: ViewController!
  
   func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -&gt; Bool {
         NSNotificationCenter.defaultCenter().addObserver(self, selector: "myFunction:" ....
   }
  
   func myFunction(note: NSNotofication){
        classView.myImageView.image = UIImage(named: "picture1") //Here get the crash
    }
  </code></pre>
  
  <p>How can I call correctly and change the <code>UIImageView</code> from <code>appDelegate</code>?</p>
  
  <p>Thanks in Advance !</p>