탭이 UINavigationController 인 UITabBarController가 있습니다. 사용자가 한 tabBar 탭을 클릭 할 때popToRootViewControllerAnimated 도구 모음이 올바르게 업데이트되지 않았습니다.
[self.navigationController pushViewController:myViewController animated:YES];
내있는 navigationController (들)의 루트에 팝업 할 : 다음으로있는 navigationController을 드릴 다운
iPhoneApp *appDelegate = (iPhoneApp *)[[UIApplication sharedApplication] delegate];
[appDelegate.navigationController2 initWithRootViewController:countryController];
: 나는 각있는 navigationController 초기화가 .
[delegate.navigationController2 popToRootViewControllerAnimated:NO];
이것은 하나의 레벨 만 pushViewController에 좋지만 내 navigationController에서 여러 레벨을 드릴 다운하면 실패합니다. 내가 poptoroot 그냥 버튼을 navigationControlls을 다시 사용하지 않으면, 모든 것이 제대로 작동
self.navigationItem.title = @"My title";
self.navigationItem.hidesBackButton = YES;
UIBarButtonItem *cancelButton = [[UIBarButtonItem alloc] initWithTitle:@"Back"
style:UIBarButtonItemStyleDone
target:self
action:@selector(handleBack:)];
: 무슨 일이 뿌리 아빠하지만 내 루트의 BACK 버튼 또는 제목을 포함하지 않는다는 것입니다.
나는 전에 내가 을 poptoroot 후 내 viewControllers을 기록전에 : MainCountryController : 0x3d53650, IndividualCountryMfgViewController : 0x3d67d50, IndividualCountryProductViewController : 0x3d60870이
후 : MainCountryController : 0x3d53650
는이 맞아 보기,하지만 잘못된 도구 모음 제목 및 뒤로 단추.
누구든지 아이디어가 있습니까? 당신의 도움을 주셔서 감사합니다.