Can you please tell me how can I transfer the value of a variable from one ViewController to another? Now implement as follows: In the cell click handler
tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath): let appDelegate = UIApplication.sharedApplication().delegate! as! AppDelegate let TaskData: TaskListTableViewController = TaskListTableViewController() TaskData.catID = currentCell.categoryID!.text // В этом месте пытаюсь передать данные let initialViewController = self.storyboard!.instantiateViewControllerWithIdentifier("taskListTable")// as! UIViewController appDelegate.window?.rootViewController = initialViewController appDelegate.window?.makeKeyAndVisible() В контроллере TaskListTableViewController переменная объявлена: class TaskListTableViewController: UITableViewController, UIPageViewControllerDelegate { var catID: String? //------------------------------ ... ... But when executing catID returns nil
Please tell me what could be the problem?

