0

FirstViewController, SecondViewController, ThirdViewController이라는 세 개의 자식 UIViewController이있는 UITabbarController을 사용하고 있습니다. FirstViewController에 버튼이 있습니다. 버튼을 탭하면 FourthViewController로 이동해야합니다. 여기서 FourthViewController는 UITabBarController 내부를 탐색합니다. 하지만 밖으로 이동 UITabBarController 밖으로 이동해야합니다.Push UITabbarController에서 UIViewController로 이동

버튼 대상 조치

ForthViewController *share = [[ForthViewController alloc] init]; 
[self.navigationController pushViewController:share animated:YES]; 

는 사람이 올바른 방법으로 저를 안내 할 수 없습니다. 미리 감사드립니다 ..

+0

"UITabbarController 안에서 탐색 할 필요가 있습니다"라는 뜻입니까? ... – NAZIK

+0

Goley가 내 포인트를 얻었습니다. 관심을 가져 주셔서 감사합니다. –

답변

2

이 시도 :

ForthViewController *share = [[ForthViewController alloc] init]; 
[self.parentViewController.navigationController pushViewController:share animated:YES]; 

는만큼 당신의 탭 바 컨트롤러는 네비게이션 컨트롤러에서와 같이,이는 탐색 스택에보기 컨트롤러를 밀어 것입니다.

+0

Super Goley. 그것은 잘 작동합니다. 감사합니다 .. –

+0

그게 나를 위해 작동하지 않습니다. –

관련 문제