Giter Site home page Giter Site logo

validated-signup-001's Introduction

Validated Sign Up

Instructions

  1. Set up the delegate for all of your UITextFields.
  2. Implement validation when a user taps the return button on the keyboard. Check out the documentation for which method you need.
  3. The validation rules are as follows: * First Name:
    • 0 characters

    • No Digits * Last Name:
    • 0 characters

    • No Digits * Email:
    • 0 characters

    • valid email format ([email protected]) * Username:
    • 0 characters

    • No Digits * Password:
    • 6 characters

  4. When the user taps return one each field. You should validate it, then present a UIAlertController with an appropriate error message. The alert view should have two buttons: OK and Clear. When you press Clear it should clear the currently editing textfield.
  5. Start with only the first textfield enabled. If a textfield passes validation, then set the enabled property of the next textfield to YES (and so on and so forth).
  6. When the final textfield is correct, enable the sign up button.

Hints

  • To dismiss the keyboard call resignFirstResponder instance method on the currently editing UITextField. To move the focus to another UITextField call the becomeFirstResponder instance method on the UITextField you want to be focused.

Extra Credit

  • This lab lends itself to some messy code if you don't put a lot of thought into the software design. How clean can you make the code? Remember each method should be short. Minimal copy-paste. Descriptive Names.

validated-signup-001's People

Contributors

fislabstest avatar jimcampagno avatar markedwardmurray avatar sarogers avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.