I created ViewController in Storyboard and I am using
instantiateViewControllerWithIdentifier:
to load it. But I need to have this VC as b
Just cast it.
MyController *controller = (MyController *)[self.storyboard instantiateViewControllerWithIdentifier:@"myController"];
or Swift:
let controller = storyboard?.instantiateViewControllerWithIdentifier("myController") as! MyController