title: Swift - Extra Argument in call
body: <p>I am trying to call a function declared in ViewController class  from DetailViewController class.</p>
  
  <p>When trying to debug the 'Extra Argument in call" error pops up.</p>
  
  <p>In ViewController class:</p>
  
  <pre><code>func setCity(item : Cities, index : Int)
  {
  
      citiesArray!.removeObjectAtIndex(index)
      citiesArray!.insertObject(item, atIndex: index)
  }
  </code></pre>
  
  <p>In detailViewController Class</p>
  
  <pre><code> // city of type Cities
   ViewController.setCity(city ,5 ) //Error: "Extra argument in call" 
  </code></pre>
  
  <p>This is pretty simple yet I'm baffled.</p>