質問編集履歴
1
追記:ModalViewControllerを呼び出しているメソッド
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,6 +46,24 @@
|
|
46
46
|
}
|
47
47
|
```
|
48
48
|
|
49
|
+
```swift
|
50
|
+
// 動画が終了したときに呼ばれる関数
|
51
|
+
func playerItemEnd(notification: NSNotification){
|
52
|
+
videoPlayer.pause()
|
53
|
+
println("全ての動画が終了")
|
54
|
+
// secondViewControllerのインスタンス生成.
|
55
|
+
let Modal = ModalViewController()
|
56
|
+
|
57
|
+
// モーダルをフェードインさせる
|
58
|
+
Modal.modalTransitionStyle = UIModalTransitionStyle.CrossDissolve
|
59
|
+
// bootstrapのモーダルっぽくする
|
60
|
+
Modal.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext
|
61
|
+
|
62
|
+
self.presentViewController(Modal, animated: true, completion: nil)
|
63
|
+
}
|
64
|
+
|
65
|
+
```
|
66
|
+
|
49
67
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
50
68
|
|
51
69
|
xcode6.4
|