UINavigationController pushViewController:animated:
선택기에 대한 설명서에서 뷰 컨트롤러가 수신기의 스택 "cannot be a tab bar controller"에 푸시되었음을 나타냅니다.UINavigationController 사용 pushViewController : animated : UITabBarController 푸시
그러나 Apple의 AVPlayerDemo sample code에는이 정확한 기술이 사용됩니다. AVPlayerDemo에서 :
여기cachedAssetBrowser
// Add the tab bar controller's current view as a subview of the window
[self.cachedAssetBrowser pushViewController:self->tabBarController animated:NO];
는 UINavigationController
인스턴스이며 tabBarController
는 UITabBarController
이다.
따라서 UITabBarController
을 UINavigationController
의 스택으로 밀어 넣는 것이 "가능"하지만 문서에 "수행 할 수 없습니다"라는 메시지가 나타나며이 작업의 함정은 무엇입니까?
예, 가능합니다. 내 질문은 : 애플 문서는 그것이 할 수 없다고 말하는 이유는 무엇이며,이 접근법의 함정은 무엇입니까? –