Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func validateUserInput() {
- if let userName = txtUserName.text {
- if let password = txtPassword.text {
- if let accountNo = txtAccountNo.text {
- validateAccountDetails(userName, password, accountNo)
- }
- else {
- show("Account Number should not be empty.")
- }
- } else {
- show("Password should not be empty.")
- }
- } else {
- show("UserName should not be empty.")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement