2011-05-03 3 views
0

다음보기로 이동하려면 didSelectRowAtIndexPath을 추가하십시오. 오류는 발생하지 않지만 다음보기로 이동할 수 없습니다.didSelectRowAtIndexPath를 사용하여 다음보기로 푸시

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 
    detailhadith *detaihd = [[detailhadith alloc] initWithNibName:@"detailhadith" bundle:nil]; 
    [self.navigationController pushViewController:detaihd animated:YES]; 
    [detaihd release]; 
} 
+1

내비게이션 컨트롤러가 있습니까? –

답변

0

그냥 같은 하위 뷰를 추가 할 수 있습니다 [self.view addSubview:nextView.view]; 당신이있는 navigationController이없는 경우.

관련 문제