Coder Social home page Coder Social logo

thefinalcountdown-ios-0616's Introduction

The Final Countdown

Let's make a timer app!

The Interface:

Start with some theme music by listening to this amazing cover song.

Here is a picture of the countdown timer app in portrait:

Portrait

Here is a picture after you hit the Start button.

Portrait 2

Your goal is to make a pared down version of this:

  • Don't do the tab bar along the bottom
  • Don't do the When Timer Ends feature
  • For the first iteration, just use regular buttons. That lower grey thing is half of the height of the view.
  • Center the start/pause buttons in the lower grey sections
  • For right now, when you tap the start button the UIPickerView should be hidden, and the label with a time should be shown. Don't worry about making it work just yet.

Making it Work

  • Users should be able to select hours and minutes.
  • The Pause button should be disabled by default. When you hit Start, the countdown should start and the Start button should turn into Cancel.
  • During the countdown the Pause button will be enabled and should pause, not reset the countdown timer.
  • Check out NSTimer in the Apple Documentation, and perhaps NSDateComponents.

Extra Credit

  • When you rotate to landscape, have it just show the time label full screen like this:

Landscape

  • In landscape, if the timer is not active, show 00:00:00.
  • Make your timer its own class that can be paused, stopped, and resumed and track its own internal state.
  • Try using DKCircleButton instead of regular buttons.

View The Final Countdown on Learn.co and start learning to code for free.

thefinalcountdown-ios-0616's People

Contributors

cordavi avatar fislabstest avatar fs-lms-test-bot avatar markedwardmurray avatar misterfifths avatar sarogers avatar zdrossman avatar

Watchers

 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.