저는이 용도로만 응용 프로그램을 만들었습니다. 가장 좋은 방법은 개별 뷰 컨트롤러 인 가장 좁은 부분부터 시작하는 것입니다. iPod 예제에서는 아티스트, 앨범, 재생 목록, 노래 등의 컨트롤러가 포함됩니다. 참고 재생 목록을 탭하면 노래 목록으로 이동합니다. 이들은 두 개의 분리 된 뷰 컨트롤러입니다.
iPod 앱에 표시되는 각 탭에는 내비게이션 컨트롤러가 있습니다. 탐색 컨트롤러는 앱 탭의 루트보기 컨트롤러를 래핑합니다. 그런 다음 각 nav 컨트롤러가 탭 컨트롤러의 ViewController로 설정됩니다. 당신은, 당신은 재생 목록의 ViewController ([self.navigationController pushViewController:theListOfSongsViewController animated:SUREWHYNOT]
)에서이 작업을 수행 할 선택한 재생 목록에있는 노래의 Playlists-> 목록, 말의 전환을 처리하고자한다면 코드는 다음과
FirstTabViewController *first = [[FirstTabViewController alloc] init...];
SecondTabViewController *second = ...;
UINavigationController *nav1 = [[UINavigationController alloc] initWithRootViewController:first];
UINavigationController *nav2 = [[UINavigationController alloc] initWithRootViewController:second];
myTabBarController.viewControllers = [NSArray arrayWithObjects:nav1, nav2, nil];
// Then make sure to release things to avoid leaks
처럼 보일 것입니다.
있습니다. 감사! –