Textfield Change Event

Hello All,
I m using a dynamic text field in my app. I have added one Event.Change Listener on it. When I type into it with the keyboard, the event triggers. But when i set some text in it when user performs some action, like textfieldName.text = “test” then the event does not triggers. In this type of situation where we are not using keyboard, which listener should be added to text field to trigger the change event?