Skip to content

Instantly share code, notes, and snippets.

@morinpic
Created October 16, 2016 07:47
Show Gist options
  • Select an option

  • Save morinpic/77aad9db1861e9f4bb59abacb61121be to your computer and use it in GitHub Desktop.

Select an option

Save morinpic/77aad9db1861e9f4bb59abacb61121be to your computer and use it in GitHub Desktop.
エッジスワイプジェッシャー抑止
override func viewDidLoad() {
super.viewDidLoad()
// エッジスワイプジェスチャー抑止
self.navigationController!.interactivePopGestureRecognizer!.enabled = false
}
override func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(animated)
// エッジスワイプジェスチャー有効化(これを呼ばないと以降エッジスワイプが効かなくなる)
self.navigationController!.interactivePopGestureRecognizer!.enabled = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment