2
내비게이션 컨트롤러를 다음 클래스의 viewDidLoad
클래스에 추가하는 방법은 appdelegate의 시작 부분에 추가하지 않았습니다.NavigationController를 appdelegate에없는 클래스에 추가하십시오.
내비게이션 컨트롤러를 다음 클래스의 viewDidLoad
클래스에 추가하는 방법은 appdelegate의 시작 부분에 추가하지 않았습니다.NavigationController를 appdelegate에없는 클래스에 추가하십시오.
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];
appDelegate에서 NavigationController를 추가하지 않은 경우? –
안녕하세요, 제발, 하나의 도움이 필요합니다, 다른 작업을위한 다른 개념,보기 coontroller에서 두 번째보기 presentviewcontroller 방법을 사용하여 두 번째보기로 이동합니다. 나는이 코드를 작성하는 방법을 viewcontroller 다시 얻으려면 단추 메서드가 있습니다. 미리 감사드립니다 – Youaregreat
@ Youaregreat- 버튼 방식으로 작성 [self dismissViewControllerAnimated : YES 완료 : nil]; – iPatel