Changes

An iOS 9 Multitasking Picture in Picture Tutorial

98 bytes added, 19:56, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
[[Image:ios_9_pip_window.png]]
Figure 93-1
[[Image:ios_9_pip_button.png]]
Figure 93-2
[[Image:xcode_7_enable_pip.png]]
Figure 93-3
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Adding the Navigation Controller ==
[[Image:ios_pip_window_visible.png]]
Figure 93-4
}
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
Having declared that the class implements the protocol, the prepareForSegue method now needs to be modified to assign the current instance of the class as the delegate for the player view controller instance:
If, on the other hand, the current view controller is the playerViewController, no action needs to be taken since the system will automatically display the player controller to show the movie in full screen. In fact, attempting to present the player view controller when it is already the current view controller will cause the app to crash with an error which reads as follows:
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
<pre>
Application tried to present modally an active view controller <AVPlayerViewController>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">