title: Swift 'use of undeclared type'
body: <p>I'm currently trying to write a little iOS application in swift, where I have these Classes:
   <code>masterTableViewController</code> <code>addViewController</code> and <code>deleteViewController</code>, each of them is connected to a, like the name already tells, viewController. The masterTableViewController should sent some data using the predefined function:</p>
  
  <pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {
  
    if(segue.identifier == "showDetails") {
      var selectedIndexPath:NSIndexPath = self.tableView.indexPathForSelectedRow()!
  
      var deleteViewController:deleteViewController = segue!.destinationViewController as deleteViewController
  
      deleteViewController.todoData = todoItems.objectAtIndex(selectedIndexPath.row) as NSDictionary
  }
  </code></pre>
  
  <p>I want to send the data of the current row to the next, by segue referenced controller.</p>
  
  <p>This is where I get an error message stating that deleteViewController is not a type that can be assigned to a variable.</p>
  
  <p>But I don't really understand what the problem s right now. Basically this should work because I just want to create a new object of the type my class is of and pass this one to my view controller.</p>
  
  <p>In the reference I got this code from everything worked just fine. </p>