누구나 설정을 읽고 업데이트하기 위해 표준 Flipside View 내에서 탐색보기를 만드는 방법을 알고 있습니까? 그렇다면 이렇게 할 때 몇 가지 코드를 게시 할 수 있습니까?표준 Flipside보기 안에 탐색보기 만들기?
1
A
답변
0
flipside를 UINavigationController의 하위 클래스로 볼 수 있습니다.
또는 새보기 컨트롤러를 밀거나 팝하지 않고 탐색 모음 만 있으면 플립 사이드보기가 NIB에서로드되는 경우 NIB 파일에 탐색 모음을 추가하기 만하면됩니다.
0
애플리케이션 위임 헤더 파일 (MyAppDelegate.h) :
@interface MyAppDelegate : NSObject <UIApplicationDelegate> {
IBOutlet UIWindow *window;
// We're assuming the root view for the main view is connected to this outlet of the app delegate
// It'll probably have a different class than UIViewController in your app
IBOutlet UIViewController *mainViewController;
UINavigationController *settingsNavigationController;
}
// Other view controllers can do [(MyAppDelegate *)[UIApplication sharedApplication].delegate showSettings] to show the settings
- (void)showSettings;
- (void)hideSettings;
@end
애플리케이션 위임하는 .m 파일 (MyAppDelegate.m) :
- (void)showSettings
{
// Load the settings view controller the first time it's needed
// We're assuming you created the root view controller for the settings in a nib called SettingsRootViewController.xib. You might also just create the root view programmatically (maybe by subclassing UITableViewController)
if(settingsNavigationController == nil)
{
SettingsRootViewController *settingsRootViewController = [[[SettingsRootViewController alloc] initWithNibName:@"SettingsRootViewController" bundle:nil] autorelease];
settingsNavigationController = [[UINavigationController alloc] initWithRootViewController:settingsRootViewController];
settingsNavigationController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal
}
[rootViewController presentModalViewController:settingsNavigationController animated:YES];
}
- (void)hideSettings
{
[settingsNavigationController dismissModalViewController:YES];
}
관련 문제
- 1. iPhone flipside보기
- 2. 탐색보기 컨트롤러 상단에 팝업
- 3. jtable 안에 콤보 박스 만들기
- 4. iPhone 모달보기 및 탐색보기 질문
- 5. 탐색보기 컨트롤러에보기를 배치하는 방법은 무엇입니까?
- 6. 새로운 MKDR 디렉토리 안에 더미 index.html 만들기
- 7. 다른 모양 안에 하나의 모양 만들기
- 8. 이미지 안에 이미지를 숨기는 .NET 프로그램 만들기
- 9. div 안에 단락 텍스트 줄 바꿈 만들기
- 10. 탐색보기 컨트롤로 돌아갈 때를 알고있는 아이폰
- 11. 표준 Android 환경 설정 대화 상자 만들기
- 12. 표준 카드 게임 만들기 (iPhone SDK)
- 13. 표준 활동으로 사전 채우기 연락처 만들기
- 14. iPhone OS 유틸리티 앱 - Flipside보기 및 기본보기 통신
- 15. "15 분 안에 텍스트 편집기 만들기"참조 예제가 작동하지 않습니다.
- 16. autoexp.dat 안에 간단한 VS2008 비주얼 라이저 만들기 (캐스팅 문제)
- 17. 탐색보기 및 탭 표시 줄 iPhone 앱 종료
- 18. 표준
- 19. gtk.ComboBoxEntry 안에 스크롤바를 넣으려면 어떻게해야합니까?
- 20. gamemaker가 C++ 표준 라이브러리를 처리하도록 래퍼 DLL 만들기
- 21. 리디렉션 된 표준 IO 핸들을 사용하여 콘솔에 연결된 프로세스 만들기
- 22. 모드 재 작성을 사용하여 표준 검색 결과 URL 만들기
- 23. IronPython에서 사용자 정의 WPF 컨트롤 만들기 : 표준 컨트롤로 구성된 컨트롤
- 24. "표준"리눅스 시스템에서 OpenGL ES 2.0 컨텍스트 만들기
- 25. 결함 보고서 표준 양식
- 26. HTML 안에 SVG로 이미지 표시
- 27. 표준 개인 및 표준 회사
- 28. "표준"Java DateBuilder 구현?
- 29. TIFF 파일 구조 표준
- 30. XML의 "루프"표준?
정말 좋은 솔루션처럼 보인다! 하지만 문제가 생겨서 효과가 있습니다. 'rootViewController' 란 무엇입니까? 루트 용 뷰 컨트롤러라고 상상할 수 있지만, 어떻게 든 먼저 구현되어야한다는 의미는 아니겠습니까? 그리고 당신이'((MyAppDelegate *) [UIApplication sharedApplication] .delegate showSettings '를 사용하여) 당신이 작성한 메소드를 호출하는 데 어려움을 겪고 있습니다. 나는 UIApplication.sharedApplication.delegate.showSettings로 전환을 시도했지만 여전히 운이 없다. 희망이 있다면 도움이 될 것이다. 왜냐하면 이것이 내가 가장 잘 할 수있는 해결책 인 것 같아. –