我试过了:
- (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
。我做错了什么?