我在X代碼上創建了一個單一的視圖應用程序,並創建了另一個視圖控制器,並試圖推動第二個視圖控制器。我如何在視圖之間切換,每個視圖都有自己的視圖控制器?
- (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信號
請提供更多的細節(什麼崩潰的錯誤,等等) – tikhop 2012-07-24 09:23:59