Assign a method for didEndOnExit event of UITextField

后端 未结 3 1023
南旧
南旧 2021-01-05 07:17

How do I programmatically assign a method (observer?) to the didEndOnExit event of a UITextField object?

This is easy enough to do in IB bu

3条回答
  •  萌比男神i
    2021-01-05 08:01

    I just figured it out...

    [mytextField addTarget:self 
            action:@selector(methodToFire:)
            forControlEvents:UIControlEventEditingDidEndOnExit];
    

提交回复
热议问题