0
나는 XCode 8.3.3과 오랫동안 온라인으로 제작 된 프로젝트를 가지고있다. 그러나 iOS 11에서 ScrollView에는 contentInsetAdjustmentBehavior라는 새 속성이 있습니다. 이렇게하면 Navigation에서 모든 scrollViewd 동작이 이상하게 보입니다. 그래서 아래 코드를 ScrollView에서 고유 한 모든 ViewController로 설정해야합니다.속성 값 UIScrollView.content.contentInsetAdjustmentBehavior를 AppDelegate에서 절대로 변경하는 방법은 무엇입니까?
if #available(iOS 11.0, *) {
self.tableView.contentInsetAdjustmentBehavior = .never
}
이 프로젝트에는 많은 ViewController가 있으므로 AppDelegate에서 설정하는 좋은 방법이 있습니까?
UIScrollView.contentInsetAdjustmentBehavior = .never
나는했지만, 엑스 코드 경고
Result of call is unused, but produces 'UIScrollViewContentInsetAdjustmentBehavior'