How to Build a Countdown App - Swift 3 in less than 10 minutes

preview_player
Показать описание
***PLEASE READ***
In order to see the text, please play this video in the highest video setting possible.

In this tutorial I teach you how to countdown to a specific date. I go a little fast so if there is anything you need to see pause the video or ask me in the comments!
Рекомендации по теме
Комментарии
Автор

I haven't tried, but I think this is just what I need, the only issue being that I want to have month/hrs, min, on different labels. I'm guessing I can just call each individual on each label instead of all in one. Thank you, very helpful!

MiguelMenendezlife
Автор

Hi everyone.
You can find the current ViewController.swift file on the link below. (Swift 3)

harunmemur
Автор

i watched this in swift 3 and was able to figure it out. A lot crybabys here who doesn't know how to research outside the box. this is a great 7min video.

andrewtrang
Автор

Please watch the video in at least 720p! The text will look horrible otherwise.

StrangeAstro
Автор

Thanks for the great tutorial! One oddity I found was my countdown coming out as "Optional (7) Months, Optional (7) Days, so on..."

Any idea of what this may be would be amazing help. Thanks Dallas!

seanlasater
Автор

Hey the code works perfectly fine for me however when my friend runs it on his laptop

It gives him an error "Expected '.' seperator and Expected expression in list of expressions in the "let timer = NSTimer. etc etc" code

AbeBadri
Автор

Followed the tutorial completely but it's giving me an error on this line of code:
let timeDifference = userCalendar.components(requestComponent, fromDate: startTime, toDate: endTime!, options: [])

the error I get is this: fatal error: unexpectedly found nil while unwrapping an Optional value

MrKdog
Автор

Hi,
When I run the app I see a red error marking the timeDifference = userCalendar.components.

It says:
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

The debug console says:
fatal error: unexpectedly found nil while unwrapping an Optional value


What can I do?
Thanks :)

kik
Автор

can you make a days countdown in swift 4.0 because when i try to follow this video i get a lot of errors because a lot of things have changed

majekaa
Автор

which is easier to build app in swift or react native

troooooper
Автор

Hey... i am new in ios, and i followed your instructions,
and i got 4 errors, can anyone please help me out?
I attached the screenshot below

AnkitPATEL-qlix
Автор

Help me guys, seriously i need help,
thank you in advance

AnkitPATEL-qlix
Автор

Hey. First I want to tell you that this is one of the best tutorial's I've watched on this specific topic. Thanks a lot.

I did everything you explained, and I have no errors. However, when I run my app, nothing comes up on the stimulator (It's blank).
And my Xcode is opening a the debug Navigator and highlighting this in Red

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

Could you please help me out?
I can't figure out what is wrong !

Thanks again

reemsinjab
Автор

Hey man, could you tell us how to handle the timer once the countdown is over? I'd like to stop the timer, but I'm not sure how to check if the countdown has reached the end.

Thanks

lucasgurgel
Автор

Hey Dallas, I have the same problem as other people.

unexpectedly found nil while unwrapping an Optional value
2017-03-03 09:24:21

It seems that the date of today is optional. How I can do an optional binding of this code?:

let timeDifference = userCleander.dateComponents(requestedComponent, from: _startTime, to: _endTime!)

On the simulator, works fine, but in the phone doesn´t works, it crash

cruzadete
Автор

Great video DDT! But in Swift 3 .components is renamed to .dateComponents...and now I cannot get it worked :-(. Do you have some tips to solve this?

Many thanks in advance!

robhaertel
Автор

all im getting is errors and poorly explained

CMERON
visit shbcf.ru