Giter VIP home page Giter VIP logo

word-play's Introduction

Word Play

Instructions

  1. Create a new class called FISRSVP.
  2. We are going to use the CLLocation class which is in the Core Location framework. So we need to add the framework by clicking on the project (blue icon at the top of the file navigator). Then select Build Phases. Open the Link Binary with Libraries drop down. Hit the plus and add the Core Location Framework. Now, everywhere you use CLLocation you'll need to import <CoreLocation/CoreLocation.h>.
  3. This class should be able to hold the following things as properties * Beginning Date/Time * Ending Date/Time * Event Name * Event Location (As a CLLocation)
  4. For these properties though we have a few validations to make sure these properties make sense. These should be implemented in the setters for the respective properties. * Start date must be before End Date. * The location latitude must be between -90.0 and 90.0 * The location longitude must be between -180.0 and 180.0

Advanced

Comment out the tests and let's get this working in a different way. Instead of just setting things to nil. Let's actually raise an NSError. The first question to ask is can we still use the standard property setters? Go ahead and implement a solution that raises an NSError that includes a proper error message and some advice on how to fix the error.

Hints

View Word Play on Learn.co and start learning to code for free.

word-play's People

Contributors

fislabstest avatar fs-lms-test-bot avatar sarogers avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

word-play's Issues

Deprecated

This lab has been removed from the active track.

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.