Not allow dot "." on double tap spacebar for UITextField
<p>I am facing problem in my app that, When I press space bar twice, "."(dot) gets added in the TextField. I do not want to allow dot "." on double tap spacebar. </p>

<p><strong>Note</strong>: I know that it is default behaviour of textField in iOS.</p>

<p>I refered the earlier answer <a href="https://stackoverflow.com/questions/2576561/iphone-disable-the-double-tap-spacebar-for-shortcut">iPhone: Disable the &quot;double-tap spacebar for .&quot; shortcut?</a> but it is for textView, Not For textField.</p>

<p>I not getting replacement to this line</p>

<pre><code>textView.selectedRange = NSMakeRange(range.location + 1, 0)
</code></pre>