2
콘텐츠 크기가 프레임보다 큰 UIScrollView가 있습니다. 나는 UIPopoverController을 표시하고 팝 오버가 배치 될 위치를 설정하기 위해 호출에 대한있는 UIImageView의 프레임을 사용하려는 오전 :이 잘 작동uiscrollview contentview 위치를 프레임에 매핑합니까?
[popoverController presentPopoverFromRect: imageView.frame inView: self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
나는 전혀 스크롤하지 않은 경우. 그러나 스크롤을 시작하자 마자 이미지 뷰의 프레임이 스크롤 뷰의 프레임 외부에 있으므로 popover는 항상 잘못된 y 축에 표시됩니다.
이 위치를지도에 표시하여 올바른 위치에 표시 할 수있는 방법이 있습니까?
CGRect convertedFrame = [scrollView convertRect:imageView.frame toView:self.view];
[popoverController presentPopoverFromRect:convertedFrame inView: self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
: