Changes

Handling User Input in a watchOS 2 WatchKit App

12 bytes removed, 20:57, 1 February 2016
m
Text replacement - "<google>BUY_WATCHOS2</google>" to "<htmlet>watchos2</htmlet>"
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>
If the input is in the form of text or a non-animated emoji, the input will be returned in the form of a Unicode string contained within a String object. If the user selects an animated emoji, however, the image will be returned in the form of an NSData object. The following code can be used to identify whether the returned result is a String or NSData object:
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>
<pre>
if let choice = result {
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>