Changes

Jump to: navigation, search

An iOS 9 Today Extension Widget Tutorial

20 bytes removed, 20:34, 1 February 2016
m
Text replacement - "<google>BUY_IOS9</google>" to "<htmlet>ios9</htmlet>"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
* '''MainInterface.storyboard''' – The storyboard file containing the user interface of the widget as it will appear within the Today view.
* '''Info.plist''' – The information property list for the extension.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Designing the Widget User Interface ==
}
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
To meet the conformance requirements of the CLLocationManagerDelegate protocol, and in order to be able to receive location update notifications, the location manager’s didUpdateLocations delegate method now needs to be implemented along with the . The code within this method will extract the latest location information and assign it to the previously declared currentLocation optional variable:
For the purposes of this example, the Info.plist file for the Location application will be modified to specify a CFBundleURLName value of com.ebookfrenzy.location and a URL scheme named location. Whilst this can be achieved using the Xcode property list editor, it is actually quicker in this instance to directly edit the XML source of the Info.plist file.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
Within the project navigator panel Ctrl-click on the Location -> Info.plist file and select the Open As -> Source Code menu option. Once the file has loaded into the editor, modify it to add the URL scheme entries as follows:
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>

Navigation menu