X-Codeで単一のViewアプリケーションを作成し、別のView Controllerを作成して、2番目のViewControllerをプッシュしてみました。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if (self.statesView == nil)
{
StatesView *newStateView = [[StatesView alloc]initWithNibName:@"StatesView" bundle:[NSBundle mainBundle]];
self.statesView = newStateView;
}
[self.navigationController pushViewController:self.statesView animated:YES];
}
しかし、アプリケーションはSIGABRT信号でクラッシュします