ios - Checking if text fields are empty cause error in Swift 2 -


i trying check if textbox has no value.

when this:

if(useremail?.isempty || userpassword?.isempty || userpasswordrepeat?.isempty)   

i following error enter image description here

i tried adding "?" before ".isempty" error won't go away enter image description here

any ideas?

try this....

if txtemail.text?.isempty == true || txtpassword.text?.isempty == true || txtrepassword.text?.isempty == true{         print("true") } 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -