我有问题tableView:didSelectRowAtIndexPath:
。
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
/*if (!self.detailViewController) {
self.detailViewController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil];
}
NSObject *object = [_objects objectAtIndex:indexPath.row];
self.detailViewController.detailItem = 对象;
[self.navigationController pushViewController:self.detailViewController 动画:YES];*/
if (!self.travelViewController) {
self.travelViewController = [[TravelViewController alloc] initWithNibName:@"TravelViewController" bundle:nil];
}
[self.navigationController pushViewController:self.travelViewController animated:YES];
}
pushViewController
使用 inUIViewController
但travelViewController
继承自UITableViewController
.