그 말을 매우 다른, 당신이 필요, 우리는 더 몇 가지 코드가없는,하지만 난 도우려고 : 에 [self presentViewController:picker animated:YES completion:nil]
을 변경하려고
도움이되지 있다면
, viewDidLoad
에서의 ViewController의 관점 (제시) 높이를 설정하려고 또는 당신은 탐색 컨트롤러없이 newView을 제시하려고 할 수 있습니다
newView.bounds = mainView.bounds; //newView can be nextViewController.view
newView.biunds.size.height=newView.biunds.size.height- self.navBar.bounds.size.height;//devide navBar height (you can delete this line)
newView.frame = CGRectMake(newView.frame.origin.x + 784, newView.frame.origin.y, newView.frame.size.width, newView.frame.size.height);
[mainView addSubview:newView];
/* Begin transition */
[UIView beginAnimations:@"Slide Left" context:oldView];
[UIView setAnimationDelegate:self];
[UIView setAnimationDelay:0.0f];
[UIView setAnimationDuration:0.5f];
[UIView setAnimationDidStopSelector:@selector(slideInCompleted:finished:context:)];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
newView.frame = CGRectMake(0,0, newView.frame.size.width, newView.frame.size.height);
oldView.frame = CGRectMake(oldView.frame.origin.x - 784, oldView.frame.origin.y, oldView.frame.size.width, oldView.frame.size.height);
[UIView commitAnimations];
후 주석을, 당신의 결과입니다 방법에 대해 설명합니다.
피커가 나타나면 탭바 컨트롤러가 항목 (탭)을 변경합니까? – Kepler
아니요, 나중에 동일한 탭으로 돌아갑니다. 변경 탭 이벤트가 실행되지 않습니다. – user1746700
자체 (클래스 란 무엇입니까?) 란 무엇입니까? – Kepler