view1 = [[View1 alloc] init]; //Create the first view
UINavigationController *navigationController1 = [[UINavigationController alloc] initWithRootViewController:view1];
navigationController1.navigationBar.tintColor =[UIColor blackColor];
View1은 UIViewController에서 상속됩니다. 그래서 * 1 뷰를 만든 다음 UINavigationController를 만들고 * navigationController1을 호출합니다. 두 항목을 어떻게 연결합니까? 대단히 감사합니다.코드의 뷰에 UINavigationController를 어떻게 추가합니까?
당신은 루트 볼 수있는 init을 할 수 UINavigationController가 * 탐색 = [[UINavigationController가의 ALLOC] initWithRootViewController : yourViewController] –