以下のように書くと処理が長くなる場合がある。
self.navigationController?.popViewControllerAnimated(true)
原因はわからないが、main threadで行うようにdispatchしてあげれば解決した
dispatch_async(dispatch_get_main_queue(), {
self.navigationController?.popViewControllerAnimated(true)
})
日本語の記事がなかったので初心者はハマりそうなのでシェア。