Checking if a string contains a text in a textfield
<p>How can I check if a <code>String</code> (for example <code>"apple"</code>) contains text that I typed in a <code>UITextField</code> (for example <code>"p"</code> or <code>"pp"</code>).<br>
If the <code>String</code> contains the <code>UITextField</code>'s <code>text</code>, I want to print a message - for example: <code>"apple contains pp"</code>.</p>