I am creating subView with UIButtons.
I want to delete text from UITextField like keyboard's backspace button with UIButton.
In Keyboard's backspace button,once clicked , it's just delete one word.
Like that, i want to do with UIButton.
How can i do that?