ios - UITextField difference between keystroke and copy/paste -


how can find out whether user has typed letter in uitextfield or copied source , pasted in uitextfield?

you can sub class uitextfield , override paste method. whenever paste in textfield method triggered

-(void)paste:(id)sender{     [super paste:sender];     //set flag know text pasted   } 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -