UIStoryboard *board = [UIStoryboard storyboardWithName: @"Main" bundle: nil];//Main你自己工程里面的Storyboard的名字
SLLightDeviceViewController * desVC = [board instantiateViewControllerWithIdentifier: @"SLLightDeviceViewController"];//Identifier是你想要得到的控制器在Storyboard的identity
![](https://img.haomeiwen.com/i4808506/8a13518a5ff8732f.png)
网友评论