title: What is the equivalent of Android's Html.fromHtml() in iOS?
body: <p>In the <code>Html</code> class, Android has:</p>
  
  <pre><code>public static Spanned fromHtml (String source)
  </code></pre>
  
  <p>which according to <a href="http://developer.android.com/reference/android/text/Html.html#fromHtml%28java.lang.String%29" rel="nofollow noreferrer">the documentation</a>:</p>
  
  <blockquote>
    <p>Returns displayable styled text from the provided HTML string. </p>
  </blockquote>
  
  <p>.. and combining that with:</p>
  
  <pre><code>public void setText (CharSequence text, TextView.BufferType type)
  </code></pre>
  
  <p>which according to <a href="http://developer.android.com/reference/android/widget/TextView.html#setText%28java.lang.CharSequence,%20android.widget.TextView.BufferType%29" rel="nofollow noreferrer">the <code>TextView</code> documentation</a>:</p>
  
  <blockquote>
    <p>Sets the text that this TextView is to display (see
    setText(CharSequence)) and also sets whether it is stored in a
    styleable/spannable buffer and whether it is editable.</p>
  </blockquote>
  
  <p>.. makes it possible to display a string with HTML markup in a TextView ( example from <a href="https://stackoverflow.com/a/2938184/700926">this StackOverflow answer</a> ):</p>
  
  <pre><code>String styledText = "This is &lt;font color='red'&gt;simple&lt;/font&gt;.";
  textView.setText(Html.fromHtml(styledText), TextView.BufferType.SPANNABLE);
  </code></pre>
  
  <p>My question is - what is the equivalent to this in iOS?</p>
  
  <p>I have done some research, and it seems that <a href="https://stackoverflow.com/a/9787109/700926">people recommends</a> using the <code>UIWebView</code> for this purpose - but is that really the only solution? And is it the recommended solution?</p>
  
  <p>Thanks.</p>