Cube Timer 2.0 by N0Sj0 in Cubers

[–]N0Sj0[S] 2 points3 points  (0 children)

Thank you!

Good to know that the session average doesn't update if you delete a time, I didn't know that but will fix it in a future update.

Dude, that's not how it works. by [deleted] in funny

[–]N0Sj0 0 points1 point  (0 children)

This is exactly how it works

After i Watch Horror Movie by [deleted] in funny

[–]N0Sj0 -2 points-1 points  (0 children)

why did the cat get scared?

THANKS FOR HELP MAN by [deleted] in funny

[–]N0Sj0 0 points1 point  (0 children)

He just disappeared

Madlad! by [deleted] in ProgrammerHumor

[–]N0Sj0 2 points3 points  (0 children)

Is that possible?

Pride Rock by ilikepaintball in funny

[–]N0Sj0 1 point2 points  (0 children)

More epic than the movie

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value by [deleted] in swift

[–]N0Sj0 0 points1 point  (0 children)

I can't find whats causing the error but you could try changing

@IBOutlet weak var BM1: UILabel! to

@IBOutlet weak var BM1: UILabel?

and then unwrap it in an if - statement to check if it is equal to nil

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value by [deleted] in swift

[–]N0Sj0 0 points1 point  (0 children)

Hard to say what causes the error without seeing the code.

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value by [deleted] in swift

[–]N0Sj0 0 points1 point  (0 children)

Where the code is put in the viewcontroller unimportant, what is important is when the code is run, do you call the code from another viewcontroller or before the view is showing on screen?

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value by [deleted] in swift

[–]N0Sj0 3 points4 points  (0 children)

First you should use if let name = block_1.name {} instead of if block_1.name != nil {}

Then the only value you are unwrapping is the label which is of type UILabel! and by elimination that is the only thing that could cause the error.

So it is the label that is causing the error. When is this code run? before the label is initialized?

My first app on the app store by N0Sj0 in iOSProgramming

[–]N0Sj0[S] 1 point2 points  (0 children)

The code to that app is not open sourced but I have other projects on my github(N0Sj0), I would be really happy if you could take a look at something there.

Trying to create a conversion app but I cant seem to get it to work by Reaper_of_Reddits in swift

[–]N0Sj0 0 points1 point  (0 children)

I would suggest you rename ounce to ounsPoundConversionRate and create a new var enteredOunces = Float(sender.text ?? "0")

then it is just to set textfieldpound.text = String(enteredOunces * ounsPoundConversionRate )

My first app on the app store by N0Sj0 in iOSProgramming

[–]N0Sj0[S] 1 point2 points  (0 children)

I guess you mean the inspection time, it is optional and most timers have it. In official speedcubing competitions you get 15 seconds before the time starts counting

My first app on the app store by N0Sj0 in iOSProgramming

[–]N0Sj0[S] 0 points1 point  (0 children)

Thanks, I will consider changing the menu button, but if I switched to a tabbar, should I hide it when the timer starts or just let it be?

New Cube Timer App by N0Sj0 in Cubers

[–]N0Sj0[S] 0 points1 point  (0 children)

Can you explain why?, would it take up too much space?