Skip to content

Commit 22868c8

Browse files
committed
added comment-out code to show how to cover the ugly quicktime icon when playing a sound
1 parent 99e5fbe commit 22868c8

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "smileyiPhone.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"version" : 1,
19+
"author" : "xcode"
20+
}
21+
}
13.2 KB
Loading

bk2ch15p659SimplestAVKit/SimplestAVKit/ViewController.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ class ViewController: UIViewController {
2727
_ in
2828
// av.view.backgroundColor = UIColor.greenColor()
2929
})
30+
// let iv = UIImageView(image:UIImage(named:"smiley")!)
31+
// av.contentOverlayView!.addSubview(iv)
32+
// let v = iv.superview!
33+
// iv.translatesAutoresizingMaskIntoConstraints = false
34+
// NSLayoutConstraint.activateConstraints([
35+
// iv.bottomAnchor.constraintEqualToAnchor(v.bottomAnchor),
36+
// iv.topAnchor.constraintEqualToAnchor(v.topAnchor),
37+
// iv.leadingAnchor.constraintEqualToAnchor(v.leadingAnchor),
38+
// iv.trailingAnchor.constraintEqualToAnchor(v.trailingAnchor),
39+
// ])
40+
3041
av.delegate = self
3142
av.allowsPictureInPicturePlayback = true
3243
case 2:

0 commit comments

Comments
 (0)