두 개의보기 컨트롤러 myViewControllerA 및 myViewControllerB가 있습니다.iPhone : 모달보기 전환하기 ViewController 호출보기 전환
myViewControllerA의 범위는 modalTransitionStyle = UIModalTransitionStyleFlipHorizontal
입니다.
그런 다음 presentModalViewController:animated:
을 호출하여 myViewControllerB를로드합니다. dismissModalViewControllerAnimated:
를 호출 한 후 갑자기 myViewControllerA 디스플레이의 모든 뷰가 상태 표시 줄의 높이만큼 위로 이동했습니다. 프로세스를 반복하면 myViewControllerA 뷰가 제대로 표시됩니다.
따라서 문제는 모달보기 컨트롤러를 처음 호출 할 때만 나타납니다. 해산하고 그것을 다시 부른 후에 모든 것이 다시 멋지게 보인다.
어떻게 될 수 있습니까?
modalViewController (B)의 뷰가 mainViewController (A) 뷰와 정확히 동일한 크기입니까? – Dimitris
네, 그렇습니다 ... – dontWatchMyProfile