2017-10-30 11 views
0

navigation controllernavigation controller이며 navigation controller입니다.보기에 새로운 스토리 보드를 표시 할 때 초기 컨트롤러로 navigation controller입니다. UINavigationController iOS11에서 Segue 푸시가 작동하지 않습니다. 뒤로 버튼이 없습니다. 제목이 없습니다

let storyboard = UIStoryboard.init(name:"AccountMenu", bundle: nil) 
let viewController = storyboard.instantiateViewController(withIdentifier:"AccountMenuRootVC") as! AccountMenuRootVC 
present(viewController, animated: true, completion: nil) 

enter image description here

결과

enter image description here

은 다음과 같이 IOS (10)

enter image description here

그러나 IOS 11

예상 작품, 탐색 컨트롤러가 작동하지 않습니다.

처음 네비게이션 컨트롤러가 올라와서 업데이트되지 않는 것처럼 보입니다. 나는 또한이 추가 시도

enter image description here

하지만 행운

if #available(iOS 11.0, *) { 
    tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.never 
    self.navigationController?.navigationBar.prefersLargeTitles = false 
    self.navigationItem.largeTitleDisplayMode = .never 
} 

어떤 제안이?

+0

iOS11에서도 잘 작동합니다. –

+0

@JD. 뒤로 버튼과 제목은 어디에 있습니까? –

답변

0

는 언제나 대답은 다른 곳에 있었다, 로그인 후에 나의 초기 SEGUE 사용자 정의 SEGUE

https://github.com/oyvind-hauge/OHCircleSegue/blob/master/OHCircleSegue/OHCircleSegue.swift

CAAnimationDelegate 기능이 추가되므로보기를 교체했다 하지만 window?.insertSubview(destView!, aboveSubview: sourceView!) 를 호출되지 않았다 밝혀이었다 커스텀 segue에 이어이 문제를 해결했습니다.

func animationDidStop(_ anim: CAAnimation, finished flag: Bool) { 
    source.present(destination, animated: false, completion: nil) 
}