이 난 화면이 다른보기로 리디렉션됩니다 button
중 하나를 클릭하면 난의 UITabBarController
보기 중 하나에서 세 가지 button
을 가지고uitabbarcontroller에서 uibutton click 이벤트에 otherviewcontroller를 푸시하는 방법은 무엇입니까?
UITabBarController *tbController =(UITabBarController *)self.window.rootViewController;
UITabBar *tbAppearence = [UITabBar appearance];
지금 appdelegate.m
파일에 내 UITabBarController
코드 이지만 수 없습니다 .
이 UserInfoViewController.m에서 내 버튼 액션 코드 이
- (IBAction)AskQuestionButtonPressed:(id)sender
{
NSLog(@"Ask Button pressed");
AskQuestion *AskQuestionObject = [self.storyboard instantiateViewControllerWithIdentifier:@"AskQuestionID"];
[self.navigationController pushViewController:AskQuestionObject animated:YES];
}
이 PLZ 내가 IOS의 새로운 해요 도와 파일입니다.
확인'UIVC' 식별자 :
은 여기 내
UITabBarController
서브 클래스의 샘플입니다. –''AskQuestionID ''와 동일하지만 아무 일도 발생하지 않습니다. –
그런 다음 탭 바 코드를 추가하십시오. 나는 탭 바에 Vc를 추가 할 때를 의미합니다. –