I have one problem, i want call one method from firstVC to seccondVC i try to use such code:
let storyboard: UIStoryboard = UIStoryboard.init(name: "MainScreenVC", bundle: nil)
let firstViewController: MainScreenVC = storyboard.instantiateViewController(withIdentifier: "MainScreenVC") as! MainScreenVC
firstViewController.automatingFullFill()
But immediately i received error, what is wrong?
My error:
'Could not find a storyboard named 'MainScreenVC' in bundle NSBundle
MainScreenVC. so uselet storyboard: UIStoryboard = UIStoryboard.init(name: "Main", bundle: nil)