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. 

**Note**: I know that it is default behaviour of textField in iOS.

I refered the earlier answer [iPhone: Disable the "double-tap spacebar for ." shortcut?](https://stackoverflow.com/questions/2576561/iphone-disable-the-double-tap-spacebar-for-shortcut) but it is for textView, Not For textField.

I not getting replacement to this line

```
textView.selectedRange = NSMakeRange(range.location + 1, 0)

```