我有一个关于在Storyboard中模拟单元测试中的UIViewController的问题。我在setUp()方法中像这样从Storyboard中加载了ViewController,这很好:varexampleVC:ExampleViewController!overridefuncsetUp(){super.setUp()exampleVC=storyboard.instantiateViewControllerWithIdentifier("exampleVC")as!ExampleViewControllerUIApplication.sharedApplication().ke