iOS 응용 프로그램에서 이러한 구조를 갖는 것이 좋지 않음을 읽었습니다. 그러나 응용 프로그램에 UINavigationController
및 UITabBarController
이 많이있을 경우 어떻게됩니까? 하지만 하나의 UINavigationBar
과 하나의 UITabBar
은 항상 표시됩니까? 기타 UINavigationBar
및 UITabBar
이 숨겨져 있습니다. 이 코드 호출 기반 네비게이션 어플리케이션, 예를 들어UINavigationController는 다른 UINavigationControllers를 스택하는 UITabBarControllers를 스택합니까?
EDITED
:이 방법의 호출 이후
- (IBAction)openTabsController:(id)sender {
tabOneController *tabOneViewContr = [[[tabOneController alloc] initWithNibName:@"tabOneController" bundle:nil] autorelease];
UINavigationController *tabOneNavContr = [[UINavigationController alloc] initWithRootViewController:tabOneViewContr];
tabTwoController *tabTwoViewContr = [[[tabTwoController alloc] initWithNibName:@"tabTwoController" bundle:nil] autorelease];
UINavigationController *tabTwoNavContr = [[UINavigationController alloc] initWithRootViewController:tabTwoViewContr];
UITabBarController *tabContr = [[[UITabBarController alloc] init] autorelease];
tabContr.viewControllers = [NSArray arrayWithObjects:tabOneNavContr,tabTwoNavContr, nil];
sel.navigationController.navigationBar.hidden = YES;
[self.navigationController pushViewController:tabContr animated:YES];
}
I는 두 UINavigationController
의 하나 UITabBarController
있다. 동시에 나는 하나의 UINavigationBar
과 하나의 UITabBar
을 화면에 가지고있다.
편집을 할
대략적인 계획. 처음부터
우리의 의견 (원) 사이를 탐색 할 수있는 UINavigationController가 있습니다. 그런 다음 UITabBar를 누른 후보기간에 전환 할 수 있습니다. 두 개의 작은 rect가있는 사각형은 2 개의 UITabBarItem이있는 UITabBar가있는 뷰입니다. UITabBarItem을 누르면 다른 UIView가 나타납니다. 이 UIView에서는 다른 UITabBar와 다른 뷰를 호출하는 버튼을 누를 수 있습니다. 다른 UITabBar로 숨겨져 있지 않으면 현재 UITabBar를 푸시 한 후에 표시됩니다. 지금은 더 명확합니까? 위의 코드는 내가 질문을 이해하지만 사과 문서가 분명하다 확실하지 않다
질문을 이해하기 위해 코드 또는 앱 디자인을 게시해야합니다. – MaTTP
이 코드는 이해하기에 충분한가요? – Gargo
응용 프로그램과 같은 구조를 만드는 것은 제 아이디어가 아닙니다. 그러니 downvote하지 마십시오 – Gargo