刚开始使用xcode 5和xctest.如何在按下按钮时测试视图是否加载.我以编程方式添加了在单击rightBarButtonItem时调用的方法
action:@selector(onSettingsButton)
并在onSettingsButton中
-(void) onSettingsButton{ SettingsViewController *svc = [[SettingsViewController alloc] init]; [self.navigationController pushViewController:svc animated:YES]; }
如何编写xctest以确保SettingsViewController调出Settings视图?谢谢.