Thanks keyboardCowboy and brygruver! You're awesome.
But I have this Question.
Does any one has solved the cursor position problem?
What I mean is, suppose you write "1234567890" and then you press "." and everything goes perfect. But how about inserting "." somewhere else rather than the tail?
for example in order to write "1234567.89" you will have to delete 8 and 9 and then write "." and then write "89" again.
I know this is something it has to be with UIKeyboard, which 3rd party programmers are not allowed to play with. But maybe there is a good idea someone could have... Any thoughts?
In case of UITextView I think can calculate the actual position by a function of the tapped possition, and current font sizes. But I don't know how accurate this method can be. I case of UITextField I am not sure whether I can do it.
Any ideas?