I present my secondViewController from (attendanceViewController) and in dismiss completion I'm trying to pass parameters and call functions. The AttendanceViewController appears and the function is called. The problem is that all the Objects are nil when dismiss`(@IBOutlet weak var tableView: UITableView! , @IBOutlet weak var boxTypeSKU: UIView!....all)` 

```
 self.presentingViewController!.dismissViewControllerAnimated(true, completion: { _ i
            let attView: AttendanceViewController = self.storyboard!.instantiateViewControllerWithIdentifier("AttendanceViewID") as! AttendanceViewController
                attView.currAttendance = self.currAttendance
                attView.searchProductWithSKU("\(sku)")

            })

```