I have four text-fields, and I want the '@IBAction button' to be disabled until all text-fields are full.
The usual way of doing this is as follows:
@IBOutletsfrom your view controller to your four text fields and to your button.
Set up your view controller to receive ‘text did change’ notifications.
When it receives such a notification, your view controller validates the text fields and updates the enabled state of the button.
The exact mechanics of doing this vary by platform. As this is platform-specific stuff rather than language-specific stuff, I recommend that you post follow-up questions in a place dedicated to that platform. For example, if you’re working on iOS you can use the App Frameworks > Cocoa Touch topic area on DevForums.
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple