1
탭 막대가있는 앱과 모든 탭 안에 탐색 컨트롤러가 있습니다. 내가 점심 식사를 할 때 경고에 대한 조치를 눌러 앱을 점심을 먹을 수 있다고 알림을 설정했습니다.알림 후 앱 대리인의 탭 막대 안에보기 컨트롤러를 밀어 넣으십시오.
사용자를 컨트롤러 중 하나의보기로 리디렉션하고 싶습니다.
이런 시도 :
- (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {
NSArray *data = [notif.userInfo objectForKey:@"todoDate"];
NSInteger ind = [[data objectAtIndex:2] integerValue];
QuickViewController *detailViewController ;
detailViewController = [[QuickViewController alloc] initWithNibName:@"QuickViewController" bundle:nil];
detailViewController.title = @"Edit";
detailViewController.personName = [data objectAtIndex:0];
detailViewController.DelitionDate=[data objectAtIndex:1];
[email protected]"NO Category";
detailViewController.personID = ind r ;
rootControler.selectedIndex = 1;
[rootControler.tabBarController.selectedViewController.navigationController pushViewController:detailViewController animated:YES];
}
을 지나지는 제외의 (아무런 충돌) 발생되지 않는다 : rootControler.selectedIndex = 1; presentModalViewController
내가 완벽하지만 탐색 컨트롤러없이보기를 얻었다 : 내가 시도
.
감사 샤니 당신이 정말 그 루트보기로 detailViewController
와 UINavigationController
을 밀어 할 때 detailViewController
을 추진하고있는 것 같습니다
감사 제프 이제 작업을 단지에 마지막 명령을 변경했다 [rootControler presentModalViewController :있는 navigationController 애니메이션 : YES]; 좋은 하루 – shannoga
문제 없습니다. 녹색 체크 표시를 클릭하여이 대답을 수락 된 것으로 표시하십시오. 미래의 질문에 대한 답변을 얻을 수있는 기회를 얻는 데 도움이 될 것입니다. –