1
저는 iOS를 처음 사용하고 Xcode 6 업데이트 후 내 taBbar에 내비게이션 컨트롤러를 표시하는 데 문제가 있습니다. 앱 : 엑스 코드 5, 그것은 시뮬레이터에서 완벽하지만 지금 일하고으로TabBar와 탐색 컨트롤러 결합 IOS8
나는 오류 메시지 "를 '탐색 컨트롤러가 지원되지 누르면'인해 캐치되지 않는 예외 'NSInvalidArgumentException'응용 프로그램 종료, 이유는"수 충돌. 다음은 내 코드입니다 : 나는 심지어이 방법 http://blog.rifkilabs.net/exploring-navigation-controller-and-tab-bar-controller.html을 시도
**appDelegate.m**
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:
(NSDictionary *)launchOptions{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor =[UIColor whiteColor];
[self.window makeKeyAndVisible];
*// tabBar items*
ItemUnViewController *itemUnViewController = [[ItemUnViewController alloc]
initWithNibName:nil
bundle:NULL];
ItemDeuxViewController *itemDeuxViewController = [[ItemDeuxViewController alloc]
initWithNibName:nil
bundle:NULL];
*//tabBar*
UITabBarController *tabBarController = [[UITabBarController alloc] init];
[tabBarController setViewControllers:@[itemUnViewController,itemDeuxViewController]];
*//setting tabBar as rootView*
self.window.rootViewController = tabBarController;
*// navigation Controllers*
UINavigationController *itemUnNavigationController =
[[UINavigationController alloc]
initWithRootViewController:itemUnViewController];
UINavigationController *itemDeuxNavigationController =
[[UINavigationController alloc]
initWithRootViewController:itemDeuxViewController];
*//Combining tabBar and Navigation Controllers*
[tabBarController setViewControllers:@
[itemUnNavigationController,itemDeuxNavigationController]];
return YES;
}
하지만 난 같은 오류 메시지가 표시됩니다.
도움 주셔서 감사합니다.