Listen to a value change of my text field

前端 未结 4 1075
既然无缘
既然无缘 2020-12-01 16:47

I\'m trying to understand how to catch a \"text changed\" event from a text field in my window. I\'m used to Java\'s \"action listeners\", and can\'t find anything similar i

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 17:10

    You can also just hook up to the "Editing Changed" from IB and create the Action to handle it

    - (IBAction)txtField_Changed:(id)sender
    {
       // my textfield has been changed
    }
    

提交回复
热议问题