2013-03-29 1 views

답변

2
YourViewController *report = [[YourViewController alloc] init]; // create Object of YourViewController 

UINavigationController *navigationController = [[UINavigationController alloc]initWithRootViewController:report]; // add YourViewController as root view controller of UINavigationController 

[self presentModalViewController:navigationController animated:YES]; 
+0

appDelegate에서 NavigationController를 추가하지 않은 경우? –

+0

안녕하세요, 제발, 하나의 도움이 필요합니다, 다른 작업을위한 다른 개념,보기 coontroller에서 두 번째보기 presentviewcontroller 방법을 사용하여 두 번째보기로 이동합니다. 나는이 코드를 작성하는 방법을 viewcontroller 다시 얻으려면 단추 메서드가 있습니다. 미리 감사드립니다 – Youaregreat

+0

@ Youaregreat- 버튼 방식으로 작성 [self dismissViewControllerAnimated : YES 완료 : nil]; – iPatel

관련 문제