Yuan
Yuan

Reputation: 117

How to enable a button when all textfield is filled

Initially button.isHidden = true, however, I would like to set the button.isHidden = false, when all textfields are filled. Where should I put the If-Else condition in, most probably not in viewDidLoad, please advise.

Upvotes: 0

Views: 94

Answers (1)

Luzo
Luzo

Reputation: 1374

You might want to take a look at this post UITextField text change event and then in textFieldDidChange function you should check texts of each textfield

Upvotes: 1

Related Questions