In Storyboard there is a UIViewController which is controlled by a UINavigationController , its Identifier("vcDen") .
It is in Objective C, it has a method that accepts NSString -(void)setText:(NSString*)text .
How to push this controller from the controller to the swift and transfer to its method which thread the text NSString ?
This scheme does not work! ! !
let storyboard = UIStoryboard(name: "Main", bundle: nil) let vc = storyboard.instantiateViewControllerWithIdentifier("vcDen") as UIViewController [vc setText:"gjhgjgjgjhg"] self.navigationController?.pushViewController(vc, animated: true)