How to send service call after filling textfields in iOS

I want to send service call to understand whether that pin correct or not. I have 4 textfields. If 4th text field is entered the service call has to go automatically. It means all textfield should fill. The service call has to go in a way that if user changes 1 or 2 or 3 or 4. I know we have to write in