0

나는이이UIPopoverController의 모달 뷰를 표시하는 방법은 무엇입니까? 모달 제시 할 때</p> <p><img src="https://i.stack.imgur.com/Recuq.png" alt="enter image description here"></p> <p>그리고이 가지고 :

enter image description here

제시 웹보기 전에 일부 코드 jsut :

webViewController.modalInPopover = YES; 
webViewController.modalPresentationStyle = UIModalTransitionStyleCoverVertical; 

그리고이 있습니다 webViewController의 viewDidLoad 템플릿 :

self.contentSizeForViewInPopover = CGSizeMake(320.0, 436.0); 

모든 롤 플레이보기의 모든 프레임을 찾았지만 frame.sizes는 정확합니다. 비슷한 솔루션을 경험 한 사람이 있습니까?

답변

1

먼저 프리젠 테이션 스타일에 transistion 스타일을 지정했습니다. 그리고 그것이 전체 화면에 대한 열거 형이었습니다. webViewController 초기화이를 갖는

...

self.modalTransitionStyle = UIModalTransitionStyleCoverVertical; 
self.modalPresentationStyle = UIModalPresentationCurrentContext; 

는 ... 문제를 해결했다.

나는 그것을 옮기려고 노력할 것이다. - (void) awakeFromNib; 하드 코드 된 크기를 제거합니다.