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 tried adding "?" before ".isempty" error won't go away
any ideas?
try this....
if txtemail.text?.isempty == true || txtpassword.text?.isempty == true || txtrepassword.text?.isempty == true{ print("true") }
Comments
Post a Comment