質問編集履歴

1

追記:ModalViewControllerを呼び出しているメソッド

2015/11/10 02:04

投稿

aild_arch_bfmv
aild_arch_bfmv

スコア11

test CHANGED
File without changes
test CHANGED
@@ -94,6 +94,42 @@
94
94
 
95
95
 
96
96
 
97
+ ```swift
98
+
99
+ // 動画が終了したときに呼ばれる関数
100
+
101
+ func playerItemEnd(notification: NSNotification){
102
+
103
+ videoPlayer.pause()
104
+
105
+ println("全ての動画が終了")
106
+
107
+ // secondViewControllerのインスタンス生成.
108
+
109
+ let Modal = ModalViewController()
110
+
111
+
112
+
113
+ // モーダルをフェードインさせる
114
+
115
+ Modal.modalTransitionStyle = UIModalTransitionStyle.CrossDissolve
116
+
117
+ // bootstrapのモーダルっぽくする
118
+
119
+ Modal.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext
120
+
121
+
122
+
123
+ self.presentViewController(Modal, animated: true, completion: nil)
124
+
125
+ }
126
+
127
+
128
+
129
+ ```
130
+
131
+
132
+
97
133
  ###補足情報(言語/FW/ツール等のバージョンなど)
98
134
 
99
135