2017-10-30 5 views
0

navigation controllerの初期コントローラとして、私はnavigation controllerという新しいストーリーボードを表示するとtabbarにはnavigation controllerがあります。UINavigationController iOS11でプッシュSegueが機能しない、戻るボタンがない、タイトルがありません

enter image description here

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

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

はいつものように、答えがどこかにあった、ログイン後の私の最初のセグエは、カスタムセグエ

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) 
} 
関連する問題