I would like to be able to detect if some text is changed in a UITextField
so that I can then enable a UIButton
to save the changes.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- how do you prevent page scroll in textarea on mobi
- iOS (objective-c) compression_decode_buffer() retu
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Custom Marker performance iOS, crash with result “
You could create a variable to store the original string, then register with the notification center to receive
UITextFieldTextDidChangeNotification
event:Then, create a method to receive the notification, and compare the current value of the text field with the original value
Don't forget to de-register the notification when the view controller is deallocated.