在单元测试期间使用XCTest进行故事板ViewController上的loadView

时间:2015-02-17 21:17:19

标签: ios xcode xcode6 xctest

我试过了:

- (void)setUp {
    [super setUp];    
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    self.asvc = [storyboard instantiateViewControllerWithIdentifier:@"addshopvc"];
    [self.asvc performSelectorOnMainThread:@selector(loadView) withObject:nil waitUntilDone:YES];
}

但在视图控制器中未调用-(void)viewDidLoad。我做错了什么?

0 个答案:

没有答案