タイトルの通り、
storyboradのsegueに紐付けないViewController(画面)に、
遷移する方法。。+引数も渡せます!
自作のポップアップ画面等を実装する際に便利なので、
忘れないようにφ(..)メモメモ
// ストーリーボードのMain.storyboardファイルを指定
let storyboard = UIStoryboard(name: "Main", bundle: nil)
// ストーリーボードで指定した「CustomPopupViewController」を指定
let vc = storyboard.instantiateViewControllerWithIdentifier("CustomPopupViewController") as! CustomPopupViewController
// 予め、CustomPopupViewControllerで宣言してあるpopupNameメンバ変数に値を渡す!
vc.popupName = hogeName
味噌は、
as! CustomPopupViewController
ちゃんとクラス名でaliasしてあげないと、
vc.popupName = hogeName
で、引数がわたせないので注意!