Giter Site home page Giter Site logo

pickin-fruit-ios-0616's Introduction

Pickin' Fruit

Let's make a slot machine!

Instructions

  1. A picker View "displays a spinning wheel or slot-machine motif of values". I've already placed one on the storyboard. Your job is to implement its 2 delegates.
  2. The first one is called UIPickerViewDataSource. Check out the docs on it...it should look pretty familiar to UITableView. Implement the required methods on your view controller. There should be three components (i.e., columns), and each component should have one row per symbol in the slot machine.
  3. Now implement the UIPickerViewDelegate to put in the appropriate text in each row. Each component (column) should have the same stuff in it.
    • Here, have some emoji: ๐ŸŽ๐Ÿ‡๐Ÿ‰๐ŸŠ๐Ÿ€๐Ÿ’Ž
  4. When the spin button is pressed, use the selectRow:inComponent:animated: to randomly spin each component to a row.
  5. When the animations finish, display a UIAlertController that says whether you won (i.e., all three components have the same value) or lost. There should be two buttons: Cancel and Spin Again. These should do reasonable things.

View Pickin' Fruit on Learn.co and start learning to code for free.

pickin-fruit-ios-0616's People

Contributors

fislabstest avatar fs-lms-test-bot avatar ipc103 avatar jimcampagno avatar misterfifths avatar sarogers avatar zdrossman avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.