I created ViewController in Storyboard and I am using
instantiateViewControllerWithIdentifier:
to load it. But I need to have this VC as b
@Bhagyesh version in Swift 3:
class func instantiateFromSuperclassStoryboard() -> SubclassViewController {
let stroryboard = UIStoryboard(name: "Main", bundle: nil)
let controller = stroryboard.instantiateViewController(withIdentifier: "BaseViewController")
object_setClass(controller, SubclassViewController.self)
return controller as! SubclassViewController
}