0

UIPopoverController를 표시 할 때 프리젠 테이션 뷰의 모든 컨트롤이 비활성화되어있는 것을 발견했습니다. 특히 탐색 버튼 (예 : '뒤로')이 선택 가능한 상태로 유지됩니다. 이것은 내 의견에 결함입니다 - 그것은 화면 스택을 popups 뒤에 popover 수 있습니다.UIPopoverController는 상태 표시 줄을 통한 스크롤을 방지해야합니다.

음, 적어도 이것은 프리젠 테이션 직후 self.aboutPopoverController.passthroughViews = nil을 사용하여 수정할 수 있습니다.

예외를 제외하고는보기의 내용을 맨 위로 스크롤하도록 설정되는 상태 표시 줄을 비활성화하지 않습니다.

최종 결과는 popover의 작은 화살표/탭이 더 이상 원래의 터치 포인트와 정렬되지 않도록 popover를 표시 한 다음 (백그라운드에서)보기를 스크롤하는 기능입니다.

누구든지이 동작에 대해 밝힐 수 있습니까? 기능입니까, 버그입니까? 해결 방법은 무엇입니까? 당신이 NOUIPopoverController 세트 UIScrollView의 특성 scrollsToTop를 표시 직전에

:

답변

1

간단한 해결 방법은 다음이 될 수 있습니다. 이렇게하면 사용자가 상태 막대에서 탭하면 scrollView가 스크롤되지 않습니다.

popover가 끝나면 scrollsToTop 기능을 다시 활성화 할 수 있습니다.

여기

UIScrollView documentation입니다 :이 도움이

scrollsToTop 
A Boolean value that controls whether the scroll-to-top gesture is enabled. 

@property(nonatomic) BOOL scrollsToTop 

Discussion 
The scroll-to-top gesture is a tap on the status bar. When a user makes this gesture, 
the system asks the scroll view closest to the status bar to scroll to the top. 
If that scroll view has scrollsToTop set to NO, its delegate returns NO from 
scrollViewShouldScrollToTop:, or the content is already at the top, nothing happens. 

희망!

+0

감사합니다. 사실 내 현재 해결 방법에 가깝습니다. 탭을 무시하는 대신 popover를 무시하고 YES를 반환합니다. –

관련 문제