2010-04-01 10 views
0

내가 세 번째 view.it에 연결되어 tableviewcell을 클릭 .If 내가 그것을 secondview에있는 tableview를 열도록 버튼을 클릭 내가 button.If이 내 firstview에서 은 UINavigationController 및 jQuery과

UINavigationController가

하나의 문제를 가지고하는 것은 두 번째와 thirdview입니다 네비게이션 바에 익숙하다

이 문제에 도움을주십시오. AppDelegate에의

답변

0

내가 샘플 코드를 게시하고이 같이있는 navigationController을 만들

HomeScreen *homeScreenObject=[[HomeScreen alloc] initWithNibName:@"HomeScreen" bundle:nil]; 
self.navController =[[UINavigationController alloc] initWithRootViewController:homeScreenObject]; 
[homeScreenObject release]; 
[window addSubview:[navController view]]; 
// Override point for customization after application launch 
[window makeKeyAndVisible]; 

navController 헤더 파일 은 UINavigationController * navController에서 선언 된 인스턴스 변수이다;

이제 firstviewcontroller에 IBAction를을 만들고 해당 조치 이벤트를하여 버튼의 터치를 결합하고

ViewController *ViewControllerObject = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; 
[self.navigationController pushViewController:ViewControllerObject animated:YES]; 
[ViewControllerObject release]; 

이 때문에의 ViewController가있는 tableView가 있어야 그 방법이 라인을 사용하고있는 tableView의 대리자 메서드 "didSelectRowAtIndexPath"에 추가 탐색을 위의 코드를 사용하십시오.