Changes

Creating an iOS 9 Photo Editing Extension

235 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:xcode_7_photo_editing_extension.png]]
Figure 86-1
[[Image:xcode_6_select_photo_extension_scheme.png]]
Figure 86-2
[[Image:xcode_6_choose_photo_ext_host_app.png]]
Figure 86-3
[[Image:ios_9_photo_app_menu_button.png]]
Figure 86-4
[[Image:ios_9_select_photo_ext.png]]
Figure 86-5
[[Image:ios_8_photo_extension_ui.png]]
Figure 86-6
Finally, Ctrl-click on the Image View and drag the resulting line to a position beneath the “class PhotoEditingViewController” declaration. Release the line and establish an Outlet for the Image View named imageView.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== The PHContentEditingController Protocol ==
}
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
The above method takes the image passed through as a parameter, takes steps to maintain the original orientation and performs an appropriately configured filter operation on the image based on the current value assigned to the currentFilter variable. The filtered image is then returned to the calling method.
Before calling the completion handler, however, this method performs the following tasks:
1. Obtains a copy of the full size version of the image.
2. Ensures that the original orientation of the image is preserved through the rendering process.
orientation: self.imageOrientation)
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
With the editing operations now applied to the full sized image, it is rendered into JPEG format and written out to a location specified by the URL assigned to the renderedContentURL property of the previously created
[[Image:ios_9_photo_ext_running.png]]
Figure 86-7
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">