title: Swift.... Class method vs. Instance method
body: <p>Thanks in advance for help!!</p>
  
  <p>I'm trying to call a func from within my Class and I keep getting an error saying that:</p>
  
  <p>Missing parameter for argument #1.............Read a few posts saying it's an instance vs class problem?  I don't get it..I'm calling the method from within the Class??? There has to be an instance of the class if the method is being called????? right? Here is my code...Thanks</p>
  
  <pre><code>import Foundation
  import Parse
  
  class TestViewController {
  
      let photos = getWallImages() //-----This is the line requesting an argument
  
      func getWallImages() -&gt; [WallPost] {
          let query = WallPost.query()!
          query.findObjectsInBackgroundWithBlock { objects, error in
  
              if error == nil {
                  if let objects = objects as? [WallPost] {
                      return objects
                      println("We have \(objects.count)")
                  }
              } else if let error = error {
                  println(error)
              }
          }
      }
  
  }
  </code></pre>