Changes

Jump to: navigation, search

Handling User Input in a watchOS 2 WatchKit App

18 bytes added, 19:58, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<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>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">

Navigation menu