나는 아이폰 개발에 새로운 사람, 내 문제는 내가 UITabbar
내 애플 리케이션에있다. 로그인 한 후 표시됩니다. 내 앱에서 로그 아웃하려면 로그인보기 컨트롤러로 돌아가려면 표시되는 로그인 컨트롤에서 탭 표시 줄을 삭제해야합니다. 그러면 어떻게해야합니까?uitabbar 컨트롤러를 제거
탭 막대를 숨기려고했지만 작동하지 않았습니다.
나는 아이폰 개발에 새로운 사람, 내 문제는 내가 UITabbar
내 애플 리케이션에있다. 로그인 한 후 표시됩니다. 내 앱에서 로그 아웃하려면 로그인보기 컨트롤러로 돌아가려면 표시되는 로그인 컨트롤에서 탭 표시 줄을 삭제해야합니다. 그러면 어떻게해야합니까?uitabbar 컨트롤러를 제거
탭 막대를 숨기려고했지만 작동하지 않았습니다.
appviewlegate에서 loginView를 rootView 컨트롤러로 만들려면 로그인 한 후 tabBar를 rootView로 만들고 로그 아웃 할 때 tabBar를 rootView에서 제거하고 loginView를 rootView로 만듭니다.
또는 .H 파일이 방법은 한 tabBar에 모든보기를 추가 응용 프로그램 위임에 한 tabBar 인스턴스 -(void)addTabBar
를 추가 할 수
@property (nonatomic,retain) UITabBarController *yourTabBar;
만들기 기능에서
, 그나마 그냥 확인 창에 하위 뷰로서이 추가 . LoginView를 rootViewController로 추가하십시오. 로그인 후는
TUTAppDelegate *appDelegate = (TUTAppDelegate *)[[UIApplication sharedApplication] delegate];
[[[appDelegate yourTabBar] view]removeFromSuperview]
애플 리케이션에 로그인하는 것은 login view controller.so uitabbar에서 이루어졌습니다. 로그인 버튼을 눌렀을 때 5 탭 바 items.so와 함께 탭바보기로 이동하면이 코드는 ' 다른 용도로 사용합니까? – Kasun
tabBar를 appDelegate에 넣으십시오 ... – Rajneesh071
아래에 로그인 버튼 동작을 넣고 수행하는 방법 – Kasun
당신이 TabBar의 앞에 modalViewController을 가진 해봤 서브 뷰
TUTAppDelegate *appdelegte =(TUTAppDelegate*)[[UIApplication sharedApplication]delegate];
[[appdelegte window]addSubview:[[appdelegte yourTabBar]view]];
로 및 로그 아웃 버튼에서 한 tabBar을 추가 ??
이 AppDelegate에에 thid을 넣어하는 방법을 내 로그인 버튼 액션과는 AppDelegate에 배치 할 경우 로그인 버튼에 액세스
UITabBarController *tabBarController = [[UITabBarController alloc] init ];
UINavigationController *statusNavigationController = [[UINavigationController alloc] init];
StatusViewController *statusViewController = [[StatusViewController alloc] initWithNibName:@"StatusViewController" bundle:nil];
statusViewController.title = @"Status";
statusViewController.tabBarItem.image = [UIImage imageNamed:@"status.PNG"];
[email protected]"";
[statusNavigationController pushViewController:statusViewController animated:YES];
UINavigationController *messageNavigationController = [[UINavigationController alloc] init];
MessageViewController *messageViewController = [[MessageViewController alloc] initWithNibName:@"MessageViewController" bundle:nil];
messageViewController.title = @"Messages";
messageViewController.tabBarItem.image = [UIImage imageNamed:@"message.PNG"];
[email protected]"";
[messageNavigationController pushViewController:messageViewController animated:YES]
[tabBarController addChildViewController:statusNavigationController];
[tabBarController addChildViewController:messageNavigationController
[self.navigationController pushViewController:tabBarController animated:YES];
tabBarController의 속성을 만듭니다. – Rajneesh071
은 SIG는 설정 방법 페이지 또는 다른 페이지 또는 Xib에서 다음 페이지로 이동합니다.
두 번째 Xib에 주어진 UITabbar.
logOut이 firs보기를 가리킬 때.
............... –
"질문"? 너 무슨 뜻이야? - "quit ion" –
네, 질문이 있습니다. – Kasun