let dialog: FriendCheckInDialogViewController = storyboard?.instantiateViewControllerWithIdentifier("FriendCheckInDialogViewController") as! FriendCheckInDialogViewController
dialog.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext
をpushViewControllerありません。しかし、popToRootViewControllerAnimated
、私は戻って行くことはできません。透明のViewController presentViewControllerとの仕事が、私は <pre><code>self.navigationController?.presentViewController(dialog, animated: false, completion: nil) </code></pre> <p></p>が続いて透明性が機能を使用する場合
私は
self.navigationController?.pushViewController(dialog, animated: false)
を使用する場合は、背景が黒の代わりに透明になります。しかし、popToRootViewControllerAnimated
が働くので、私は戻ってきます。
どうすればよいですか?
ビューコントローラをモーダルまたはナビゲーションスタックの一部として表示しますか? presentViewControllerを使用する場合はモーダルで、dismissViewControllerを使用する必要があります。ナビゲーションコントローラとスタックを使用している場合は、以前のView Controllerの上に透明度 – Paulw11
@ Paulw11 cool、works、thanks manと表示できます。それを答えさせてください。あなたは本当にしたい場合は、iOS開発の新しいので、簡単にこの方法を見つけることができませんでした –